Skip to main content

news_summizr

PyPI version License: MIT Downloads LinkedIn

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 process
  • llm: 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)

Source distribution for news-summizr 2025.12.21232733
File Size Uploaded
news_summizr-2025.12.21232733.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for news-summizr 2025.12.21232733
File Interpreter ABI Platform
news_summizr-2025.12.21232733-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

2025.12.21232733 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page