fin-insight-extract
Overview
A new package that extracts and structures key business and financial insights from news articles or reports. The package takes unstructured text input, such as news headlines or summaries, and uses llmatch-messages to parse and extract specific details like company names, financial figures, market impacts, and strategic moves. It returns a structured output that includes the key entities involved, the nature of the announcement, potential market implications, and any notable figures or metrics mentioned.
Installation
Installation can be done via pip:
pip install fin_insight_extract
Usage
Extract financial and business insights from unstructured text:
from fin_insight_extract import fin_insight_extract
user_input = "The company has announced a 20% increase in revenue for the quarter"
response = fin_insight_extract(user_input=user_input)
print(response)
Parameters
user_input: The unstructured text to process. (str)llm: A LangChain LLM instance to use. If not provided, the defaultChatLLM7will be used. (Optional[BaseChatModel])api_key: The API key for LLM7. If not provided, the defaultChatLLM7will be used. If provided, it will also be used for the defaultChatLLM7. (Optional[str])
Using Custom LLMs
You can safely pass your own LLM instance (based on https://docs(langchain.io)) if you want to use another LLM. For example, to use OpenAI:
from langchain_openai import ChatOpenAI
from fin_insight_extract import fin_insight_extract
llm = ChatOpenAI()
response = fin_insight_extract(user_input="The company has announced a 20% increase in revenue for the quarter", llm=llm)
print(response)
Similarly, you can use Anthropics:
from langchain_anthropic import ChatAnthropic
from fin_insight_extract import fin_insight_extract
llm = ChatAnthropic()
response = fin_insight_extract(user_input="The company has announced a 20% increase in revenue for the quarter", llm=llm)
print(response)
or Google:
from langchain_google_genai import ChatGoogleGenerativeAI
from fin_insight_extract import fin_insight_extract
llm = ChatGoogleGenerativeAI()
response = fin_insight_extract(user_input="The company has announced a 20% increase in revenue for the quarter", llm=llm)
print(response)
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 pass your own API key via environment variable LLM7_API_KEY or directly:
from fin_insight_extract import fin_insight_extract
response = fin_insight_extract(user_input="The company has announced a 20% increase in revenue for the quarter", api_key="your_api_key")
print(response)
Get a free API key at https://token.llm7.io/
Contributing
Report issues at: https://github.com/chigwell/fin-insight-extract
Author
authored by Eugene Evstafev (hi@eugevstfev.plus)
Metadata
Release files for fin-insight-extract 2025.12.22075142
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 |
|---|---|---|---|---|
| fin_insight_extract-2025.12.22075142.tar.gz | 6.2 kB | Without provenance | Details for fin_insight_extract-2025.12.22075142.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fin_insight_extract-2025.12.22075142-py3-none-any.whl | Python 3 | none | any | Details for fin_insight_extract-2025.12.22075142-py3-none-any.whl |
Total release size: 13.1 kB
Release files / fin_insight_extract-2025.12.22075142.tar.gz
| Download URL | fin_insight_extract-2025.12.22075142.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b3dabb09b7b591ea1538f303a63ef385d0013b8cb5fd4fdb1991f17730f3bff
|
|
BLAKE2b-256 checksum How to use checksums |
5bf29174e36599e83a00237b93f9c87459142bb98a5e005715688ef95e12ea19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / fin_insight_extract-2025.12.22075142-py3-none-any.whl
| Download URL | fin_insight_extract-2025.12.22075142-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2847ca3012c17c514a94ff23c48bc4fb3f7b12064519820875f8f5872521d823
|
|
BLAKE2b-256 checksum How to use checksums |
58a13dd944a4ed6c2e6389af02b8eb6a1b7c2f573eceb6409e229807cc02954f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for fin-insight-extract 2025.12.22075142
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.