Skip to main content

A new package that analyzes user-provided text summaries of yearly breakdowns (e.g., financial reports, project post-mortems, or performance reviews) and extracts structured insights. It uses an LLM t

Project description

yearly_insights_parser

PyPI version License: MIT Downloads LinkedIn

Overview

A new package that analyzes user-provided text summaries of yearly breakdowns (e.g., financial reports, project post-mortems, or performance reviews) and extracts structured insights. It uses an LLM to identify key themes, recurring issues, successes, and recommendations, then formats the output into a consistent, machine-readable structure. This helps users quickly digest and act on summarized yearly data without manual parsing.

Installation

pip install yearly_insights_parser

Usage

from yearly_insights_parser import yearly_insights_parser

response = yearly_insights_parser(
    user_input="...",  # user-provided text input
    api_key="your_api_key",  # optional, use LLM7 API key for higher rate limits
    llm=your_llm_instance,  # optional, use a custom LLM instance
)

The yearly_insights_parser function takes three parameters:

  • user_input: the text input to process (string)
  • api_key: optional, use an LLM7 API key for higher rate limits (string)
  • llm: optional, use a custom LLM instance (BaseChatModel instance)

By default, it uses the ChatLLM7 from langchain_llm7 <https://pypi.org/project/langchain-llm7/>_. If you want to use another LLM, you can pass your own instance:

from langchain_openai import ChatOpenAI
from yearly_insights_parser import yearly_insights_parser

llm = ChatOpenAI()
response = yearly_insights_parser(user_input="...", llm=llm)

Similarly, you can use ChatAnthropic or ChatGoogleGenerativeAI from langchain_anthropic <https://pypi.org/project/langchain-anthropic/>_ or langchain_google_genai <https://pypi.org/project/langchain-google-genai/>_ respectively.

Note that the default rate limits for LLM7 free tier should be sufficient for most use cases. If you need higher rate limits, you can provide your own API key using one of the above methods.

API Key for LLM7

The default rate limits for the LLM7 free tier are generally sufficient for most use cases. If you require higher rate limits for LLM7, you can provide your own API key:

  • Via the LLM7_API_KEY environment variable.
  • Directly by passing the api_key argument to the function: yearly_insights_parser(user_input="...", api_key="your_api_key") You can obtain a free API key by registering at https://token.llm7.io/

Contributing

Please report any issues or suggestions on the GitHub issues page: https://github.com/chigwell/yearly-insights-parser/

Author

License

[MIT License] - see the LICENSE.md file for details.

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

yearly_insights_parser-2025.12.21101922.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file yearly_insights_parser-2025.12.21101922.tar.gz.

File metadata

File hashes

Hashes for yearly_insights_parser-2025.12.21101922.tar.gz
Algorithm Hash digest
SHA256 1f29d8d6be782f8c3b36651c48b015a1a051e4c33ba74de0d867a696457ed5d3
MD5 652443b60c9ccd86b38083d804d5aefc
BLAKE2b-256 df59dba429f4848c402fd44cb2269b62ced38878827fcfb7f8c96a09f3351df9

See more details on using hashes here.

File details

Details for the file yearly_insights_parser-2025.12.21101922-py3-none-any.whl.

File metadata

File hashes

Hashes for yearly_insights_parser-2025.12.21101922-py3-none-any.whl
Algorithm Hash digest
SHA256 14ca873e1d5826269e1471eca87c5dea336bde19905e5c695c9019eaaa38202b
MD5 17d69ef3febdea4e90b546b302770308
BLAKE2b-256 4470c1bab64b090f74aebdb37cd307e1d31b889f9b39586e553bab9b33260fbe

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