Skip to main content

A new package that allows users to input a public username or handle from social media platforms, and receives a structured, humorous roast based on publicly available information. The package uses ll

Project description

Trollmaker

PyPI version License: MIT Downloads LinkedIn

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

  1. Takes a username/handle as input.
  2. Uses LLM7 (or a custom LLM) to generate a structured roast.
  3. Ensures the output follows a consistent format (roast + insult + compliment).
  4. 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_KEY via 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


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

trollmaker-2025.12.21115254.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

trollmaker-2025.12.21115254-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file trollmaker-2025.12.21115254.tar.gz.

File metadata

  • Download URL: trollmaker-2025.12.21115254.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for trollmaker-2025.12.21115254.tar.gz
Algorithm Hash digest
SHA256 fa94eab504fea8cfb242ae3fa2f1668e1a0e788c18ae7de5aab601ac218811af
MD5 4d8b7cbac0dd5a1fba1762545dc37710
BLAKE2b-256 9337eb1db88f4af0604c30018fdf0a76bfa4cc278be43ca13b5d12479a882269

See more details on using hashes here.

File details

Details for the file trollmaker-2025.12.21115254-py3-none-any.whl.

File metadata

File hashes

Hashes for trollmaker-2025.12.21115254-py3-none-any.whl
Algorithm Hash digest
SHA256 6083f2423958b4e1195b7da491f2f62c7be6206929499cffd0147b4fe9f3e19e
MD5 ec53f32a7959cb5214abe49645c0e8d5
BLAKE2b-256 843861e604b8350846ac23e8f13750dd3808118dcef3259a43bce6941b85dadf

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