Alfredo
See exactly how TF-IDF, TextRank, and sentiment scoring work — with code you can read in 5 minutes — running at production speed.
Alfredo is not a wrapper around an LLM API. It's a self-contained, offline, dependency-light NLP toolkit built for two audiences at once: learners who want to see the actual math behind NLP tasks, and developers who want something fast enough to ship without API keys, network calls, or per-request costs.
Install
pip install alfredo-ai
Usage
import alfredo as nlp
nlp.summarize("Long article text...", num_sentences=2)
nlp.sentiment("This product is amazing!")
nlp.classify("Free money now!!!", labels=["spam", "not spam"])
nlp.extract_keywords("Machine learning is a subset of artificial intelligence...")
Why Alfredo
| Goal | Why it matters |
|---|---|
| No external AI API calls | Works offline, no API key, no per-call cost, no network latency |
| Readable source code | Every algorithm should be understandable in one sitting |
| Fast (NumPy-vectorized) | Not "slow but educational" — usable in real projects |
| Documented reasoning | docs/HOW_IT_WORKS.md explains the why, not just the what |
| Benchmarked | Speed claims backed by numbers vs. nltk/spaCy/textblob |
Benchmarks
Run python benchmarks/benchmark.py and paste real numbers here once available.
| Task | Alfredo | nltk | textblob |
|---|---|---|---|
| summarize | — | — | — |
| sentiment | — | — | — |
| extract_keywords | — | — | — |
Development
pip install -e ".[dev]"
pytest tests/
python benchmarks/benchmark.py
License
MIT — see LICENSE.
Metadata
Release files for alfredo-ai 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alfredo_ai-0.1.3.tar.gz | 40.2 kB | Without provenance | Details for alfredo_ai-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alfredo_ai-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for alfredo_ai-0.1.3-py3-none-any.whl |
Total release size: 78.6 kB
Release files / alfredo_ai-0.1.3.tar.gz
| Download URL | alfredo_ai-0.1.3.tar.gz |
|---|---|
| Size | 40.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e01bde4f21c5ab6e6065cfa51876dc7b922cdb74ee502705ab97f643ab86f933
|
|
BLAKE2b-256 checksum How to use checksums |
9c98503ca5bb1258f05ddaffefeacb5c84ca7f7b00128ba2d0271a7d391b9552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Release files / alfredo_ai-0.1.3-py3-none-any.whl
| Download URL | alfredo_ai-0.1.3-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f83188d176dab0ec205443311e9544e812522d95c2565744f0bee572a3a39b8f
|
|
BLAKE2b-256 checksum How to use checksums |
66192513a9176d0217488fdf0cfd60f296a377685f5e9faa8770391a7062d6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Security for alfredo-ai 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.