PyPI StatsPyPI Stats
DiscoverCompareTrendingDashboard
PyPI Stats — Download analytics for Python packages
APIGitHubPrivacyTerms

Sign in to subscribe to our weekly trending newsletter.

Download data sourced from BigQuery (Google). Counts may include CI/CD and mirror traffic.
Inspired by and built upon the work of pypistats.org
Discover/Text Processing & NLP
📝

Best Python Text Processing & NLP Libraries

Libraries for parsing text, natural language processing, and linguistic analysis.

24 packages · ranked by health score & downloads

Trending this week

↑ charset-normalizer↑ Jinja2↑ Jinja2↑ MarkupSafe↑ MarkupSafe
#1charset-normalizerv3.5.2↑
86

The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.

579.3M/moMIT★ 801
#2Jinja2v3.1.6↑
86

A very fast and expressive template engine.

257.8M/moBSD License★ 11.8K
#3Jinja2v3.1.6↑
86

A very fast and expressive template engine.

257.8M/moBSD License★ 11.8K
#4MarkupSafev3.0.4↑
80

Safely add untrusted strings to HTML/XML markup.

303.2M/moBSD-3-Clause★ 698
#5MarkupSafev3.0.4↑
80

Safely add untrusted strings to HTML/XML markup.

303.2M/moBSD-3-Clause★ 696
#6lxmlv6.1.3↑
93

Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.

155.5M/moBSD-3-Clause★ 3.1K
#7pyparsingv3.3.3↑
89

pyparsing - Classes and methods to define and execute parsing grammars

152.1M/moMIT★ 2.5K
#8beautifulsoup4v4.15.0↑
89
← All categoriesSearch text processing & nlp packages →

Screen-scraping library

138.2M/moMIT License
#9regexv2026.9.29↑
86

Alternative regular expression module, to replace re.

150.2M/moApache-2.0 AND CNRI-Python★ 606
#10chardetv7.6.0↑
92

Universal character encoding detector

73.7M/mo0BSD★ 2.7K
#11docutilsv0.23↑
89

Docutils -- Python Documentation Utilities

65.2M/moBSD License

19 more packages

Sign in for free to see the full list

Sign in free