Skip to content

Commit

Permalink
Fixing README
Browse files Browse the repository at this point in the history
  • Loading branch information
polera committed Feb 14, 2012
1 parent 22725c7 commit 43c6d78
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Expand Up @@ -5,21 +5,21 @@ nameparts is a Python module that I wrote to address a problem splitting full na
parts (first, middle, last, etc.) parts (first, middle, last, etc.)


You can use it like this: You can use it like this:
>>> from nameparts import Name >>> from nameparts import Name
>>> n = Name("Thurston Howel III") >>> n = Name("Thurston Howel III")
>>> n.first_name >>> n.first_name
'Thurston' 'Thurston'
>>> n.last_name >>> n.last_name
'Howel' 'Howel'
>>> n.as_dict >>> n.as_dict
{'first_name': 'Thurston', 'last_name': 'Howel', 'middle_name': None, 'suffix': None, 'generation': 'III', 'salutation': None} {'first_name': 'Thurston', 'last_name': 'Howel', 'middle_name': None, 'suffix': None, 'generation': 'III', 'salutation': None}
>>> n = Name("Smith, John Paul") >>> n = Name("Smith, John Paul")
>>> n.first_name >>> n.first_name
'John' 'John'
>>> n.last_name >>> n.last_name
'Smith' 'Smith'
>>> n.middle_name >>> n.middle_name
'Paul' 'Paul'


Comments/Questions/Improvements Comments/Questions/Improvements
------------------------------- -------------------------------
Expand Down

0 comments on commit 43c6d78

Please sign in to comment.