Skip to main content

Finwell Analyzer

PyPI version License: MIT Downloads LinkedIn

A package designed to analyze user-submitted texts related to financial well-being by employing language models and pattern matching.

Overview

The package processes the input to identify key sentiments, themes, and insights about young adults' perceptions of affordability and financial status. It returns structured data such as summarized opinions, emotional tone, or categorized reasons behind perceptions, helping organizations understand public sentiment on economic issues without handling raw documents or multimedia.

Installation

pip install finwell_analyzer

Usage

from finwell_analyzer import finwell_analyzer

user_input = "I'm struggling to balance my expenses and savings."
response = finwell_analyzer(user_input)
print(response)  # Output: A dictionary with summarized opinions, emotional tone, and categorized reasons behind perceptions.

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, the default rate limits for LLM7 free tier will be used.

Using Custom LLMs

You can safely pass your own LLM instance (based on LangChain LLMs if you want to use another LLM, via passing it like finwell_analyzer(..., llm=their_llm_instance).

Example with OpenAI

from langchain_openai import ChatOpenAI
from finwell_analyzer import finwell_analyzer

llm = ChatOpenAI()
response = finwell_analyzer("I'm struggling to balance my expenses and savings.", llm=llm)

Example with Anthropic

from langchain_anthropic import ChatAnthropic
from finwell_analyzer import finwell_analyzer

llm = ChatAnthropic()
response = finwell_analyzer("I'm struggling to balance my expenses and savings.", llm=llm)

Example with Google Generative AI

from langchain_google_genai import ChatGoogleGenerativeAI
from finwell_analyzer import finwell_analyzer

llm = ChatGoogleGenerativeAI()
response = finwell_analyzer("I'm struggling to balance my expenses and savings.", llm=llm)

API Key

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits for LLM7, you can pass your own API key via environment variable LLM7_API_KEY or via passing it directly like finwell_analyzer(..., api_key="their_api_key"). You can get a free API key by registering at LLM7 Token.

Issues

Have any questions or issues? Please feel free to open a GitHub issue at GitHub Issues.

Author

Eugene Evstafev hi@eugene.plus

Acknowledgments

This package uses the LangChain LLMs module, specifically the ChatLLM7 class from langchain_llm7.

Metadata

Release files for finwell-analyzer 2025.12.21103304

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finwell-analyzer 2025.12.21103304
File Size Uploaded
finwell_analyzer-2025.12.21103304.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for finwell-analyzer 2025.12.21103304
File Interpreter ABI Platform
finwell_analyzer-2025.12.21103304-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / finwell_analyzer-2025.12.21103304.tar.gz

Download URL finwell_analyzer-2025.12.21103304.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
85c5cb0bd7c90eca6102bb89617de613b88a70bb5564890d951f3123c8806d39
BLAKE2b-256 checksum
How to use checksums
e69a50ae4d10afa17f2f3ac36ed98eae1b960178eda0a054986b65ed33e6b36f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / finwell_analyzer-2025.12.21103304-py3-none-any.whl

Download URL finwell_analyzer-2025.12.21103304-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77069a4974cdb0ec3b365cf25523931843532ad493a62d232d30fb9fd196bc0a
BLAKE2b-256 checksum
How to use checksums
152ce5522385fddedb9a8e652e0ce1ab4df76bf6e0ee53bcda858ab3b36409e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.12.21103304 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