faker-news
Faker provider that turns any OpenAI-compatible LLM into a fake news generator with caching and reuse controls.
Features
- Generate headlines, intros, and full articles on demand
- Keep content in a SQLite cache with per-item usage tracking
- Batch requests to minimize API calls and latency
- Works with OpenAI, Azure OpenAI, Qwen/DashScope, and other OpenAI-compatible APIs
Installation
pip install faker-news
Quick Start
Try it without installation using uvx:
# Set up your API key / load example data
uvx faker-news setup
# Browse generated articles
uvx faker-news browse
Use as a library:
from faker import Faker
from faker_news import NewsProvider
fake = Faker()
provider = NewsProvider(fake)
fake.add_provider(provider)
headline = fake.news_headline()
intro = fake.news_intro(headline=headline)
article = fake.news_article(headline=headline, words=500)
Documentation
Full guides, API reference, and CLI details live in the docs/ directory. Start with docs/quick-start.md or docs/cli-reference.md.
Contributing
See docs/contributing.md for the development workflow and guidelines.
License
MIT
Metadata
Release files for faker-news 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| faker_news-0.1.2.tar.gz | 104.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| faker_news-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 203.9 kB
Release files / faker_news-0.1.2.tar.gz
| Download URL | faker_news-0.1.2.tar.gz |
|---|---|
| Size | 104.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aece14cbc1bf83d0b225fc24b0c2ee1678e145fb5c693ecdbc9c694518d2b7ba
|
|
BLAKE2b-256 checksum How to use checksums |
ab6bf28d5e6eb710597b6000d19a7eb207d8bab2aba0e8fe0aebd161881adaf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 7, 2025.
Transparency logRelease files / faker_news-0.1.2-py3-none-any.whl
| Download URL | faker_news-0.1.2-py3-none-any.whl |
|---|---|
| Size | 99.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4312d8da1784bbc6c454aff434b8c269314fd6013923953189a21cc603e1e682
|
|
BLAKE2b-256 checksum How to use checksums |
8aa4bae2cdecc2de6e009292671bc731564dcf24c07107e7ff115a08beb82fe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 7, 2025.
Transparency log