news_summizr
Simplify extracting structured summaries from news articles with this package.
Overview
A new package designed to simplify extracting structured summaries from news articles. It takes a headline or brief input about recent events and generates a concise, labeled summary emphasizing key points such as the main announcement, affected products, and regional focus.
Installation
pip install news_summizr
Usage
from news_summizr import news_summizr
response = news_summizr(user_input="Some news article headline", llm=None, api_key=None)
Input parameters:
user_input: str - the user input text to processllm: Optional[BaseChatModel] - the langchain llm instance to use, if not provided the default ChatLLM7 will be used.api_key: Optional[str] - the api key for llm7, if not provided.
By default, it uses the ChatLLM7 from langchain_llm7: https://pypi.org/project/langchain-llm7/.
You can safely pass your own llm instance (based on https://docs.langchain.com/) if you want to use another LLM, via passing it like news_summizr(user_input, llm=your_llm_instance).
Here are some examples of other LLMs you can use:
from langchain_openai import ChatOpenAI
from news_summizr import news_summizr
llm = ChatOpenAI()
response = news_summizr(user_input, llm=llm)
from langchain_anthropic import ChatAnthropic
from news_summizr import news_summizr
llm = ChatAnthropic()
response = news_summizr(user_input, llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
from news_summizr import news_summizr
llm = ChatGoogleGenerativeAI()
response = news_summizr(user_input, llm=llm)
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits for LLM7, you can pass your own api key via environment variable LLM7_API_KEY or via passing it directly like news_summizr(user_input, api_key="your_api_key"). You can get a free api key by registering at https://token.llm7.io/.
GitHub Issues
https://github.com/chigwell/news-summizr
Author
Eugene Evstafev hi@euegne.plus
Metadata
Release files for news-summizr 2025.12.21232733
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 |
|---|---|---|---|---|
| news_summizr-2025.12.21232733.tar.gz | 4.4 kB | Without provenance | Details for news_summizr-2025.12.21232733.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| news_summizr-2025.12.21232733-py3-none-any.whl | Python 3 | none | any | Details for news_summizr-2025.12.21232733-py3-none-any.whl |
Total release size: 9.4 kB
Release files / news_summizr-2025.12.21232733.tar.gz
| Download URL | news_summizr-2025.12.21232733.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa33c986cd79111d2b787cd411036ee09088f4825459026d90bce60925f4d319
|
|
BLAKE2b-256 checksum How to use checksums |
96d3a9daa94606e5e614068f4c389923a6ef930cc5161af903cdc48164c6926a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / news_summizr-2025.12.21232733-py3-none-any.whl
| Download URL | news_summizr-2025.12.21232733-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef264924e00ef5a17c9645dd6a644d16199440c1a40816a6a1fa7ba266912ef5
|
|
BLAKE2b-256 checksum How to use checksums |
74dbb0b0495b97c2624559b280acc6921d0160f30c21af12be78913957763d41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for news-summizr 2025.12.21232733
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.