pypinyin
Some data may be outdated — see provenance labels.
汉字转拼音(pypinyin) observed · 2026-09-22
Health v2 · maintenance only
64/100
- Activity 85
- Release rhythm 16
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 112
- age_days: 4784
- days_rel: 457
- days_push: 92
- n_releases_24m: 2
Adoption not part of the score
5362 stars · 629 forks observed · 2026-09-22
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
pypinyin is a Python library (with a companion CLI) that converts Chinese characters (hanzi) to pinyin, supporting polyphonic characters, multiple pinyin styles, bopomofo, and Wade-Giles romanization. It also has related Go and data projects under the same author.
Use cases
- convert chinese characters to pinyin
- get pinyin annotations for hanzi text
- sort chinese strings alphabetically by pinyin
- build chinese text search with pinyin matching
- handle polyphonic characters correctly
- convert pinyin with tone numbers to tone marks
- get first letters of chinese words for indexing
When to choose
- you need accurate hanzi-to-pinyin conversion in Python or Go
- you need polyphone/heteronym support or custom pinyin dictionaries
- you need multiple romanization styles including bopomofo and Wade-Giles
When to avoid
- you need Chinese word segmentation or full NLP pipelines rather than pinyin conversion
- you need machine translation or speech synthesis
- you work in a language ecosystem without a pypinyin port
Facets
library · maturity stable
nlp cli parser developer-tools python cli cross-platform pinyin chinese hanzi text-processing transliteration natural-language-processing localization
1 source
- readme: https://github.com/mozillazg/python-pinyin · fetched 2026-09-22 · 83db2e412f6b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mozillazg/python-pinyin | main | 64 |
| mozillazg/go-pinyin | sdk | 51 |
| mozillazg/pinyin-data | infra | 50 |
For agents
markdown · JSON · MCP: product_card(name="mozillazg/python-pinyin")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem