Skip to content

Releases: derek73/python-nameparser

v0.3.9

Choose a tag to compare

@derek73 derek73 released this 05 Sep 20:30
  • Separate suffixes that are acronyms to handle periods differently, fixes #29, #21
  • Don't find titles after first name is filled, fixes (#27)
  • Add "chair" titles (#37)

v0.3.8

Choose a tag to compare

@derek73 derek73 released this 03 Sep 04:52
  • Fixes for #36, better handling of roman numerals at the end of a name

v0.3.7

Choose a tag to compare

@derek73 derek73 released this 31 Aug 09:09
  • Speed improvement, 3x faster
  • Make HumanName instances pickleable

v0.3.6

Choose a tag to compare

@derek73 derek73 released this 06 Aug 08:51
  • Fix strings that start with conjunctions (#20)
  • handle assigning lists of names to a name attribute
  • support dictionary-like assignment of name attributes

v0.3.5

Choose a tag to compare

@derek73 derek73 released this 04 Aug 08:43
  • Fix handling of string encoding in python 2.x (#34)
  • Add support for dictionary key access, e.g. name['first']
  • add 'santa' to prefixes, add 'cpa', 'csm', 'phr', 'pmp' to suffixes (#35)
  • Fix prefixes before multi-part last names (#23)
  • Fix capitalization bug (#30)

v0.3.4

Choose a tag to compare

@derek73 derek73 released this 02 Mar 04:40
  • Fix #24, handle first name also a prefix
  • Fix #26, last name comma format when lastname is also a title

v0.3.3

Choose a tag to compare

@derek73 derek73 released this 04 Aug 19:32
  • Allow suffixes to be chained (#8)
  • Handle trailing suffix in last name comma format (#3). Removes support for titles with periods but no spaces in them, e.g. "Lt.Gen.". (#21)

v0.3.2

Choose a tag to compare

@derek73 derek73 released this 17 Jul 05:46
  • Retain original string in "original" attribute.
  • Collapse white space when using custom string format.
  • Fix #19, single comma name format may have trailing suffix

v0.3.1

Choose a tag to compare

@derek73 derek73 released this 05 Jul 21:09

Fix PyPi package missing config module.

v0.3.0

Choose a tag to compare

@derek73 derek73 released this 04 Jul 22:17

Initial refactoring of the constants and configurations system to make it easier to modify (#1). You can now adjust the parser's configuration like so:

>>> from nameparser import HumanName
>>> from nameparser.config import CONSTANTS
>>> CONSTANTS.titles.add('dean', 'Chemistry')
>>> hn = HumanName("Assoc Dean of Chemistry Robert Johns")
>>> hn
<HumanName : [
    Title: 'Assoc Dean of Chemistry'
    First: 'Robert'
    Middle: ''
    Last: 'Johns'
    Suffix: ''
    Nickname: ''
]>

New instructions for customizing the parser are included in the new documentation.

Install:

pip install nameparser