bibpy.name module¶
Class for names split into its components (given name, family name etc.).
-
class
bibpy.name.Name(first='', prefix='', last='', suffix='')[source]¶ Bases:
objectClass containing the individual components of a name.
-
family¶ Alias for self.last.
-
first¶ Return the first or given name.
-
format(style='first-last', initials=False)[source]¶ Format the name using different styles. Default is ‘first-last’.
- Consider the name ‘John Smith’ and its different styled formatings:
- first-last => ‘John Smith’
- last-first => ‘Smith, John’
If initials is True, convert name to its initials e.g. “Jane Gustav” => “J. G.”.
-
given¶ Alias for self.first.
-
junior¶ Alias for self.suffix.
-
last¶ Return the last or family name.
-
parts¶ Return a tuple of all the name parts of this Name.
-
prefix¶ Return the prefix (e.g. ‘von’).
-
suffix¶ Return the suffix (e.g. ‘Jr.’).
-
von¶ Alias for self.prefix.
-