pypinyin
汉字转拼音(pypinyin) observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 93
- 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-09-02. Adoption (stars, forks) is never an input.
- gap_med: 153.5
- age_days: 4736
- days_rel: 409
- days_push: 44
- n_releases_24m: 3
Adoption not part of the score
5356 stars · 627 forks observed · 2026-08-28
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-08-28 · 83db2e412f6b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mozillazg/python-pinyin | main | 67 |
| mozillazg/go-pinyin | sdk | 55 |
| mozillazg/pinyin-data | infra | 54 |
For agents
markdown · JSON · MCP: product_card(name="mozillazg/python-pinyin")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem