Skip to main content

A sarcastic and secure GPT-powered Python code roaster.

Project description

Python License Security Audited

Code Roast Bot

Code Roast Bot is a terminal tool that humorously and securely roasts your Python code using GPT-4. It detects security red flags, hardcoded secrets, and code crimes — then flames them with sarcasm and style.

Features

  • 🔐 Static analysis of security risks (eval, exec, secrets, etc.)
  • 🧠 Obfuscation detection (AST + regex)
  • 🤖 GPT-powered roasting with tone and verbosity controls
  • 🎭 Choose a voice: Colbert, Trump, Clarkson, Bill Burr, etc.
  • 🧪 Includes unit tests and redaction logic
  • 📤 Output as Markdown or plain text

Usage

code-roast your_script.py --roast-level 7 --voice billburr --verbosity 3

You can also pipe code in via stdin or scan multiple files.

License

BSD 3-Clause 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

code_roast_bot-1.4.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

code_roast_bot-1.4.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file code_roast_bot-1.4.0.tar.gz.

File metadata

  • Download URL: code_roast_bot-1.4.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for code_roast_bot-1.4.0.tar.gz
Algorithm Hash digest
SHA256 1f790a122f7097fc3cd91525b6887d105243cd852bedc36d276301850db011af
MD5 d4121dc6c663c19b7dd9a272cf6a475e
BLAKE2b-256 7b4fd6820ef6d78b703c9203f2db1fe1ec864a797e0aba2bba26ff682247279b

See more details on using hashes here.

File details

Details for the file code_roast_bot-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: code_roast_bot-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for code_roast_bot-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba6ba850c74e24ef8cb23bab1f85a2a388ad6c213c50ff817f6885a16cdcee9a
MD5 e7948c8147888dc14a937fea3a616b2f
BLAKE2b-256 9a870d9e97c29c4035d185d5c2a5e570fc6e060cd6873cff971849f492fb1f2d

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