Skip to main content

Text input processor for corporate actions, extracting key entities, actions, and context.

Project description

bizact-insights

PyPI version License: MIT Downloads LinkedIn

bizact-insights is a Python package designed to process text inputs related to corporate actions, such as trademark filings or product launches, and extract structured insights. It identifies key entities, actions, and contextual information from news snippets or official statements, enabling users to quickly grasp business-related developments.

Installation

Install the package via pip:

pip install bizact_insights

Usage

from bizact_insights import bizact_insights

# Example usage with default LLM7
results = bizact_insights(
    user_input="Apple announced the launch of a new product line in Europe.",
)
print(results)

Parameters

  • user_input (str): The input text to analyze.
  • llm (Optional[BaseChatModel]): An instance of a language model (e.g., from langchain). If not provided, the default ChatLLM7 will be used.
  • api_key (Optional[str]): API key for LLM7. If not provided, it can be set via the environment variable LLM7_API_KEY.

Details

This package relies on the ChatLLM7 class from langchain_llm7, which offers a straightforward interface to the LLM7 API. It can also accept custom language model instances, allowing integration with other providers such as OpenAI, Anthropic, or Google Generative AI.

Example with custom LLMs

from langchain_openai import ChatOpenAI
from bizact_insights import bizact_insights

llm = ChatOpenAI()
response = bizact_insights(user_input="Tesla reported record deliveries.", llm=llm)
print(response)
from langchain_anthropic import ChatAnthropic
from bizact_insights import bizact_insights

llm = ChatAnthropic()
response = bizact_insights(user_input="Microsoft announced a new cloud service.", llm=llm)
print(response)
from langchain_google_genai import ChatGoogleGenerativeAI
from bizact_insights import bizact_insights

llm = ChatGoogleGenerativeAI()
response = bizact_insights(user_input="Google is expanding its workspace features.", llm=llm)
print(response)

Rate Limits

The default usage via LLM7's free tier offers sufficient rate limits for most purposes. For higher throughput, you can obtain a free API key by registering at https://token.llm7.io/ and set it via the LLM7_API_KEY environment variable or pass it directly:

results = bizact_insights(user_input="Sample text", api_key="your_api_key_here")

Support & Issues

If you encounter issues or have questions, please open an issue on the GitHub repository.

Author

Eugene Evstafev
Email: hi@euegne.plus

GitHub: chigwell

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bizact_insights-2025.12.21201957.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bizact_insights-2025.12.21201957-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file bizact_insights-2025.12.21201957.tar.gz.

File metadata

File hashes

Hashes for bizact_insights-2025.12.21201957.tar.gz
Algorithm Hash digest
SHA256 714b1b84ea8b9ad8aa0599f2925be63f57ebeebc00962875698640c7012e5e67
MD5 121da595e42135f621eacb57caf5191e
BLAKE2b-256 33a3c5fe782b423b630686fbcce81a120aa7fbf971a0bc6b26bd0152f5adcf05

See more details on using hashes here.

File details

Details for the file bizact_insights-2025.12.21201957-py3-none-any.whl.

File metadata

File hashes

Hashes for bizact_insights-2025.12.21201957-py3-none-any.whl
Algorithm Hash digest
SHA256 a3e8a9c980ac01410ba0174a4b1be16b7190a8342d9f0e6d1627f3323e78bad7
MD5 9e26cc6627fcd346354c7c3fcad9308d
BLAKE2b-256 1f1196477738814ddc292d2dbc447db81bb243a921ac296463550e8337ef8763

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page