Python Human Name Parser

Version 2.0.0rc1

nameparser parses human names into seven fields — title, given, middle, family, suffix, nickname, maiden. Results are immutable, configuration is composable (Lexicon for vocabulary, Policy for behavior), and locale packs are opt-in. Requires Python 3.11+.

>>> from nameparser import parse
>>> name = parse("Dr. Juan Q. Xavier de la Vega III")
>>> name.given, name.family
('Juan', 'de la Vega')
>>> name.render("{family}, {given}")
'de la Vega, Juan'

Coming from 1.x? Migrating from HumanName.

Indices and tables

GitHub Project: https://github.com/derek73/python-nameparser