Homepage: https://textblob.readthedocs.io/
TextBlob is a Python library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, and more.
from textblob import TextBlob
text = """
The titular threat of The Blob has always struck me as the ultimate movie
monster: an insatiably hungry, amoeba-like mass able to penetrate
virtually any safeguard, capable of--as a doomed doctor chillingly
describes it--"assimilating flesh on contact.
Snide comparisons to gelatin be damned, it's a concept with the most
devastating of potential consequences, not unlike the grey goo scenario
proposed by technological theorists fearful of
artificial intelligence run rampant.
"""
blob = TextBlob(text)
blob.tags # [('The', 'DT'), ('titular', 'JJ'),
# ('threat', 'NN'), ('of', 'IN'), ...]
blob.noun_phrases # WordList(['titular threat', 'blob',
# 'ultimate movie monster',
# 'amoeba-like mass', ...])
for sentence in blob.sentences:
print(sentence.sentiment.polarity)
# 0.060
# -0.341
TextBlob stands on the giant shoulders of NLTK and pattern, and plays nicely with both.
Features
Noun phrase extraction
Part-of-speech tagging
Sentiment analysis
Classification (Naive Bayes, Decision Tree)
Tokenization (splitting text into words and sentences)
Word and phrase frequencies
Parsing
n-grams
Word inflection (pluralization and singularization) and lemmatization
Spelling correction
Add new models or languages through extensions
WordNet integration
Get it now
$ pip install -U textblob $ python -m textblob.download_corpora
Examples
See more examples at the Quickstart guide.
Documentation
Full documentation is available at https://textblob.readthedocs.io/.
Project Links
License
MIT licensed. See the bundled LICENSE file for more details.
Metadata
Release files for textblob 0.20.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textblob-0.20.1.tar.gz | 639.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textblob-0.20.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / textblob-0.20.1.tar.gz
| Download URL | textblob-0.20.1.tar.gz |
|---|---|
| Size | 639.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbd1a3307532e9dddb8f50284874559e01020e79b5fe5ae4c1da709a9e2087ea
|
|
BLAKE2b-256 checksum How to use checksums |
b936bea92e52a9c2b2e73c0507b1f47f5d5378a300131811e585780e19005b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logRelease files / textblob-0.20.1-py3-none-any.whl
| Download URL | textblob-0.20.1-py3-none-any.whl |
|---|---|
| Size | 625.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f957699169a3e7b9a03a504883111b7b6973679496b9af959db2f74ee2449977
|
|
BLAKE2b-256 checksum How to use checksums |
6b7ff4c3c1f86d80d76de7e94b1ed6d2712bd541bf4d0579cab34d20b39a7706
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency log