Skip to main content

forum-guard

PyPI version License: MIT Downloads LinkedIn

A Python package designed to facilitate structured and reliable textual interactions within a global forum environment. It processes user inputs—such as comments, questions, and feedback—using pattern matching and retries to extract key information, topics, or sentiments, ensuring consistent and meaningful responses. The system enables moderators or automated tools to identify and categorize submissions effectively, fostering authentic and unfiltered conversations while maintaining high-quality, structured exchanges based solely on the provided text data.

Installation

pip install forum_guard

Usage

Here's an example of how to use the forum_guard function in Python:

from forum_guard import forum_guard

user_input = "Your user input text here."
response = forum_guard(user_input)
print(response)

Input Parameters

  • user_input (str): The user input text to process.
  • llm (Optional[BaseChatModel]): An instance of a langchain.llm core language model to use. If not provided, the default ChatLLM7 will be used.
  • api_key (Optional[str]): The API key for ChatLLM7. If not provided, it attempts to read from the environment variable LLM7_API_KEY.

Custom LLM Usage

You can pass your own language model instance to forum_guard. Supported models include, but are not limited to:

from langchain_openai import ChatOpenAI
from forum_guard import forum_guard

llm = ChatOpenAI()
response = forum_guard(user_input, llm=llm)
from langchain_anthropic import ChatAnthropic
from forum_guard import forum_guard

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

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

Notes

  • The default ChatLLM7 is based on the langchain_llm7 package. You can install it via:
pip install langchain-llm7
  • To increase rate limits, you can set your own LLM7_API_KEY in environment variables or pass it directly:
response = forum_guard(user_input, api_key="your_api_key")

Support

For issues and feature requests, visit the GitHub repository: https://github.com/yourusername/forum-guard/issues

Author

Eugene Evstafev (chigwell)
Email: hi@euegne.plus

Metadata

Release files for forum-guard 2025.12.22075453

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

Source distribution (sdist)

Source distribution for forum-guard 2025.12.22075453
File Size Uploaded
forum_guard-2025.12.22075453.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forum-guard 2025.12.22075453
File Interpreter ABI Platform
forum_guard-2025.12.22075453-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / forum_guard-2025.12.22075453.tar.gz

Download URL forum_guard-2025.12.22075453.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a0c06461860c6ec5c9615c10679bf8b54e9027a652a5efe2e59bcc015bb8fb0f
BLAKE2b-256 checksum
How to use checksums
8584c3665ae91a664fa2b91d752e663c786adaa9d77b9e5f3d038a9cf57e0afb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / forum_guard-2025.12.22075453-py3-none-any.whl

Download URL forum_guard-2025.12.22075453-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f1d287f5e02cca35426c67daf6198e948f0e8b326b00df0b7839cfeace7e389
BLAKE2b-256 checksum
How to use checksums
a65fc88aedc7e2bbf336307a709d67054ad8420e705248c41159742d6d5b7c97
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.22075453 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