Trollmaker
A fun and structured package that generates light-hearted, humorous roasts based on a public username or handle from social media. The output is formatted consistently with a roast, a playful insult, and a balanced compliment—all while ensuring a non-offensive, entertaining experience.
Installation
Install the package via pip:
pip install trollmaker
Usage
Basic Usage (Default LLM7)
from trollmaker import trollmaker
response = trollmaker(user_input="username_to_roast")
print(response)
Custom LLM Integration
By default, the package uses ChatLLM7 (from langchain_llm7). You can easily replace it with other LLMs like OpenAI, Anthropic, or Google Vertex AI.
Example: Using OpenAI
from langchain_openai import ChatOpenAI
from trollmaker import trollmaker
llm = ChatOpenAI()
response = trollmaker(user_input="username_to_roast", llm=llm)
print(response)
Example: Using Anthropic
from langchain_anthropic import ChatAnthropic
from trollmaker import trollmaker
llm = ChatAnthropic()
response = trollmaker(user_input="username_to_roast", llm=llm)
print(response)
Example: Using Google Vertex AI
from langchain_google_genai import ChatGoogleGenerativeAI
from trollmaker import trollmaker
llm = ChatGoogleGenerativeAI()
response = trollmaker(user_input="username_to_roast", llm=llm)
print(response)
Parameters
| Parameter | Type | Description |
|---|---|---|
user_input |
str |
The username or handle to generate a roast for. |
api_key |
Optional[str] |
Optional LLM7 API key (defaults to LLM7_API_KEY env var). |
llm |
Optional[BaseChatModel] |
Optional custom LLM (e.g., ChatOpenAI, ChatAnthropic). If not provided, defaults to ChatLLM7. |
How It Works
- Takes a username/handle as input.
- Uses LLM7 (or a custom LLM) to generate a structured roast.
- Ensures the output follows a consistent format (roast + insult + compliment).
- Returns a humorous yet non-offensive response.
Rate Limits & API Key
- Default LLM7 Free Tier is sufficient for most use cases.
- For higher rate limits, set
LLM7_API_KEYvia environment variable or pass it directly:trollmaker(user_input="username", api_key="your_api_key")
- Get a free LLM7 API key at https://token.llm7.io/.
Contributing & Issues
For bugs, feature requests, or questions, open an issue here: 🔗 https://github.com/chigwell/trollmaker/issues
Author
👤 Eugene Evstafev 📧 hi@euegne.plus 🔗 GitHub: chigwell
Metadata
Release files for trollmaker 2025.12.21115254
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| trollmaker-2025.12.21115254.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trollmaker-2025.12.21115254-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / trollmaker-2025.12.21115254.tar.gz
| Download URL | trollmaker-2025.12.21115254.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa94eab504fea8cfb242ae3fa2f1668e1a0e788c18ae7de5aab601ac218811af
|
|
BLAKE2b-256 checksum How to use checksums |
9337eb1db88f4af0604c30018fdf0a76bfa4cc278be43ca13b5d12479a882269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / trollmaker-2025.12.21115254-py3-none-any.whl
| Download URL | trollmaker-2025.12.21115254-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6083f2423958b4e1195b7da491f2f62c7be6206929499cffd0147b4fe9f3e19e
|
|
BLAKE2b-256 checksum How to use checksums |
843861e604b8350846ac23e8f13750dd3808118dcef3259a43bce6941b85dadf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for trollmaker 2025.12.21115254
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.