Skip to main content

A new package that processes text input to monitor and analyze the health and performance of a message bus system. It uses natural language queries to return structured insights about message throughp

Project description

Buslytics

PyPI version License: MIT Downloads LinkedIn

Buslytics is a Python package designed to process natural language user input to monitor and analyze the health and performance of message bus systems. It leverages language models to interpret queries related to message throughput, error rates, queue statuses, and system alerts, delivering structured insights that help developers and operators maintain system reliability without requiring deep technical expertise.

Installation

Install the package via pip:

pip install buslytics

Usage

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

from buslytics import buslytics

response = buslytics(user_input="What is the current error rate?", api_key="your_api_key")
print(response)

Parameters:

  • user_input (str): The text query input by the user for system analysis.
  • llm (Optional[BaseChatModel]): An optional LangChain LLM instance. If not provided, the default ChatLLM7 from langchain_llm7 will be used.
  • api_key (Optional[str]): Your LLM7 API key. If not provided, it will be fetched from the environment variable LLM7_API_KEY.

Custom LLM Usage:

You can pass your own language model instance to suit your preferred provider:

from langchain_openai import ChatOpenAI
from buslytics import buslytics

llm = ChatOpenAI()
response = buslytics(user_input="Check message throughput", llm=llm)

Other supported models include:

from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic()
response = buslytics(user_input="Check queue status", llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
llm = ChatGoogleGenerativeAI()
response = buslytics(user_input="Identify system alerts", llm=llm)

Notes:

  • The package uses ChatLLM7 from langchain_llm7 by default.
  • The default rate limits for the free tier of LLM7 are usually sufficient. For higher limits, supply your API key via the environment variable LLM7_API_KEY or directly as a parameter.
  • Obtain a free API key at https://token.llm7.io/.

Support and Issues

Please report issues or feature requests at: https://github.com/chigwell/buslytics/issues

Author

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

License

This project is licensed under the MIT License.

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

buslytics-2025.12.21154840.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

buslytics-2025.12.21154840-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file buslytics-2025.12.21154840.tar.gz.

File metadata

  • Download URL: buslytics-2025.12.21154840.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for buslytics-2025.12.21154840.tar.gz
Algorithm Hash digest
SHA256 e414b9ea7765237d93f70ecc13ebd4f4b8975b437253ae39230600d74a294517
MD5 62dc2179b0f229a2f6108c73cfc83bd2
BLAKE2b-256 7aad7747869754b18f68145564ff8f738bedd58a6d020be92b2e7122bcf65cd8

See more details on using hashes here.

File details

Details for the file buslytics-2025.12.21154840-py3-none-any.whl.

File metadata

File hashes

Hashes for buslytics-2025.12.21154840-py3-none-any.whl
Algorithm Hash digest
SHA256 e21284f2d4e45e40feb99043589bfa6a27d5ba081d1d6fdde9ee8c6447ff9ac1
MD5 aa203026cba87d5af99e79e3bf7d0feb
BLAKE2b-256 9756f0e9ba34a3b9bb2aa0ef758e195736357241e99074226aee8dd38ebf3b04

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