Skip to content

Releases: derek73/python-nameparser

v0.3.5

04 Aug 08:43
Compare
Choose a tag to compare
  • 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

02 Mar 04:40
Compare
Choose a tag to compare
  • Fix #24, handle first name also a prefix
  • Fix #26, last name comma format when lastname is also a title

v0.3.3

04 Aug 19:32
Compare
Choose a tag to compare
  • 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

17 Jul 05:46
Compare
Choose a tag to compare
  • 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

05 Jul 21:09
Compare
Choose a tag to compare

Fix PyPi package missing config module.

v0.3.0

04 Jul 22:17
Compare
Choose a tag to compare

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

v0.3-alpha

17 May 02:45
Compare
Choose a tag to compare
v0.3-alpha Pre-release
Pre-release
v0.3-alpha-2