python-nameparser: A Robust Python Module for Parsing Human Names
This repository profile is provided by osrepos.com, an open source repository discovery platform.
Summary
python-nameparser is a powerful Python module designed to accurately parse human names into distinct components like title, given, middle, family, and suffix. It offers immutable results, flexible configuration, and supports locale-specific parsing, making it an essential tool for text processing and data normalization tasks. The module recently released version 2.0, enhancing its capabilities while maintaining backward compatibility for most existing code.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
The python-nameparser project, developed by derek73, is a highly effective Python module for dissecting human names into their constituent parts. It can parse names into seven distinct fields, including title, given, middle, family, suffix, nickname, and maiden name. With its recent 2.0 release, python-nameparser continues to provide robust and flexible name parsing capabilities, ensuring accurate and consistent results for various applications.
Installation
Getting started with python-nameparser is straightforward. You can install it using pip:
pip install nameparser
It requires Python 3.11+.
Examples
The module is easy to use, as demonstrated by this quick example:
from nameparser import parse
name = parse("Dr. Juan Q. Xavier de la Vega III")
print(name.given, name.family)
# Expected output: ('Juan', 'de la Vega')
print(name.render("{family}, {given}"))
# Expected output: 'de la Vega, Juan'
The seven fields available are title, given, middle, family, suffix, nickname, and maiden. Additionally, it provides aggregate views like given_names, surnames, family_base, and family_particles for more granular control.
Why Use It
python-nameparser stands out for its comprehensive approach to name parsing. It offers immutable results, ensuring data integrity, and its configuration is highly composable, allowing developers to tailor its behavior to specific needs. The availability of opt-in locale packs further enhances its utility for handling diverse naming conventions globally. Whether you need to normalize names for databases, process user input, or analyze textual data, python-nameparser provides a reliable and flexible solution.
Links
For more detailed information and advanced usage, refer to the official documentation:
Related repositories
Similar repositories that may be relevant next.

Maskit: Local Privacy Gateway for LLMs and AI Tools
September 20, 2026
Maskit is a local privacy desensitization gateway engineered for large language models and AI tools. It automatically masks sensitive data in requests sent to AI services and then seamlessly restores it in streaming responses, ensuring private information remains local. This innovative solution supports various AI assistants like Cursor and Claude Code, along with any tool offering a configurable Base URL.

CyberVerse: Self-Hosted Real-Time Digital Human Agent Platform
September 18, 2026
CyberVerse is an open-source, self-hosted platform for building real-time digital human agents. It leverages WebRTC, persona memory, tools, and RAG to create voice-first AI agents, with optional digital-human video capabilities. This powerful framework allows developers to create highly interactive and lifelike AI companions.

ctx-gate: LLM Context Gateway for Efficient Token Usage
September 16, 2026
ctx-gate is an LLM-agnostic context optimization proxy that reduces token consumption in AI interactions. It intelligently prunes conversation history and tool outputs, ensuring critical facts are retained without altering your workflow. Compatible with Anthropic and OpenAI APIs, ctx-gate helps developers manage LLM costs and maintain prompt fidelity.
Ferret MCP: AI-Powered Knowledge Extraction for Any Codebase
September 14, 2026
Ferret MCP is an MCP server designed to extract comprehensive knowledge from any codebase, combining static analysis with AI-powered deep interpretation. It provides detailed insights into architecture, patterns, dependencies, and API surface, delivering a senior engineer's analysis in seconds. This tool integrates seamlessly with various MCP clients, offering both free static analysis and advanced AI-driven reports.
Source repository
Open the original repository on GitHub.
18 counted GitHub visits