Skip to main content

vibe-analyzer

PyPI version License: MIT Downloads LinkedIn

vibe-analyzer is a Python package designed to analyze user-provided text to detect and categorize the overall emotional tone or "vibe" of the content. It processes input text and returns a structured summary of the detected emotions, such as positivity, negativity, excitement, or calmness, using pattern matching to ensure consistent and reliable output formatting. This tool is useful for sentiment tracking in user feedback, social media monitoring, or enhancing chatbot interactions by adapting responses based on emotional context.

Installation

Install vibe-analyzer via pip:

pip install vibe_analyzer

Usage

Here's a basic example of how to use vibe_analyzer:

from vibe_analyzer import vibe_analyzer

# Sample user input
user_input = "I'm feeling great today!"

# Analyze the vibe
result = vibe_analyzer(user_input)

print(result)

Function Parameters

  • user_input: str
    The text input from the user to analyze for emotional tone.

  • llm: Optional[BaseChatModel]
    An instance of a language model to use for analysis. If not provided, the default ChatLLM7 from langchain_llm7 will be used.

  • api_key: Optional[str]
    Your API key for llm7. If not provided, it will be read from the environment variable LLM7_API_KEY.

Underlying Technology

The package uses the ChatLLM7 class from the langchain_llm7 library by default. Developers can easily pass their own language model instances compatible with the interface, such as:

from langchain_openai import ChatOpenAI
from vibe_analyzer import vibe_analyzer

llm = ChatOpenAI()
response = vibe_analyzer(user_input, llm=llm)

Similarly, other models like Anthropic or Google Generative AI can be used:

from langchain_anthropic import ChatAnthropic
from vibe_analyzer import vibe_analyzer

llm = ChatAnthropic()
response = vibe_analyzer(user_input, llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
from vibe_analyzer import vibe_analyzer

llm = ChatGoogleGenerativeAI()
response = vibe_analyzer(user_input, llm=llm)

Rate Limits and API Keys

The default rate limits for LLM7's free tier are sufficient for most use cases. For higher rate limits, you can:

  • Set your API key via the environment variable LLM7_API_KEY, or
  • Pass it directly in function call: vibe_analyzer(user_input, api_key="your_api_key")

You can obtain a free API key by registering at https://token.llm7.io/.

Support

If you encounter issues or have questions, please open an issue on the GitHub repository:
https://github.com/chigwell/vibe-analyzer

Author

Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell

Metadata

Release files for vibe-analyzer 2025.12.21143555

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

Source distribution (sdist)

Source distribution for vibe-analyzer 2025.12.21143555
File Size Uploaded
vibe_analyzer-2025.12.21143555.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vibe-analyzer 2025.12.21143555
File Interpreter ABI Platform
vibe_analyzer-2025.12.21143555-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / vibe_analyzer-2025.12.21143555.tar.gz

Download URL vibe_analyzer-2025.12.21143555.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f62130ca09deaec82412b5992dc679ef1cfa9fa1f530f31b7a255dc3eea399d6
BLAKE2b-256 checksum
How to use checksums
aa2ad2e954d4cc8e3713db381f3b76d9ac40067190380e6c7bf3e3aa73def937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / vibe_analyzer-2025.12.21143555-py3-none-any.whl

Download URL vibe_analyzer-2025.12.21143555-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
946698a8351ffd68249fdb22362137e10d73e670a3b14bbc5fdd8ab9915b78de
BLAKE2b-256 checksum
How to use checksums
ff34ef374ca128e442d07f4e89d9dbf75002349003fabf6c2a19cfc098469e6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21143555 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