The package helps users extract key details from short announcements or descriptions. It focuses on understanding the core offering and any associated benefits presented in plain text, without needing
Project description
AnnounceExtractor
AnnounceExtractor is a Python package designed to extract key details from short announcements or descriptions. It focuses on understanding the core offering and any associated benefits presented in plain text, without needing to access external links or files. The goal is to quickly identify what is being offered and its main advantages.
Installation
pip install announceexctractor
Usage
Basic Usage
from announceexctractor import announceexctractor
user_input = "Check out our new tool! It's free, no signup required, and has no watermarks."
response = announceexctractor(user_input)
print(response)
Using a Custom LLM
By default, AnnounceExtractor uses the ChatLLM7 from langchain_llm7. However, you can safely pass your own LLM instance if you want to use another LLM.
Using OpenAI
from langchain_openai import ChatOpenAI
from announceexctractor import announceexctractor
llm = ChatOpenAI()
response = announceexctractor(user_input, llm=llm)
print(response)
Using Anthropic
from langchain_anthropic import ChatAnthropic
from announceexctractor import announceexctractor
llm = ChatAnthropic()
response = announceexctractor(user_input, llm=llm)
print(response)
Using Google
from langchain_google_genai import ChatGoogleGenerativeAI
from announceexctractor import announceexctractor
llm = ChatGoogleGenerativeAI()
response = announceexctractor(user_input, llm=llm)
print(response)
Using a Custom API Key
If you want to use a custom API key for LLM7, you can pass it directly or via an environment variable.
from announceexctractor import announceexctractor
# Using environment variable
import os
os.environ["LLM7_API_KEY"] = "your_api_key"
response = announceexctractor(user_input)
print(response)
# Passing API key directly
response = announceexctractor(user_input, api_key="your_api_key")
print(response)
Parameters
user_input(str): The user input text to process.llm(Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the defaultChatLLM7will be used.api_key(Optional[str]): The API key for LLM7. If not provided, the environment variableLLM7_API_KEYwill be used.
Rate Limits
The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits, you can get a free API key by registering at LLM7.
Issues
If you encounter any issues, please report them on the GitHub issues page.
Author
- Eugene Evstafev - chigwell
- Email: hi@eugene.plus
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file announceexctractor-2025.12.21121449.tar.gz.
File metadata
- Download URL: announceexctractor-2025.12.21121449.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
462998db832d9c93f8e52b04dfad4d302b4ea986c31ea9b6348c10b1959f106c
|
|
| MD5 |
eab0c10a1e3b85609c1d24957e9b3996
|
|
| BLAKE2b-256 |
d05ec2050022dacd884fae45994de5028c73123092e6d320a8bb46e6da1cb002
|
File details
Details for the file announceexctractor-2025.12.21121449-py3-none-any.whl.
File metadata
- Download URL: announceexctractor-2025.12.21121449-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a34e91c5b0448c20c2a099b3e9d91c04d6a9bedb088b01229ce5c193361f880
|
|
| MD5 |
5c8d97644e9c5ac6ecd4709c8c3ef521
|
|
| BLAKE2b-256 |
f51277e910e1de31aaf5ad712874842db4cbd3ea9a889cc1af6ad7b026ce548f
|