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.

🔐 Environment Configuration (.env)

To authenticate with the OpenAI API, code-roast-bot uses a .env file to load your API key securely.

📄 .env File Format

Create a file named .env in the root of your project directory and add the following line:

OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Replace sk-xxxxxxxx... with your actual API key from https://platform.openai.com/account/api-keys.

🔒 Important Notes

  • Do not commit your .env file to version control (this project includes a .gitignore that ignores it).
  • Never share your API key publicly — it grants access to your account's usage and billing.

📦 Global Configuration

You may place your .env file in your home directory to apply it globally:

~/.env        # macOS/Linux
C:\Users\yourname\.env  # Windows

This is supported by default in the latest version of Code Roast Bot.

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.6.0.tar.gz (11.1 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.6.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_roast_bot-1.6.0.tar.gz
  • Upload date:
  • Size: 11.1 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.6.0.tar.gz
Algorithm Hash digest
SHA256 862eee000b4eb50167fd03234dad930d41addec1c63fcb9f9e6b07d8d9994d4c
MD5 1d1b369b9c90ae71c2612d72cd352dc0
BLAKE2b-256 9dfbae6b50e08575712799791d9285c65291aad8dfe2ec870eff63831c83c194

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_roast_bot-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e129782fda6fb114e6929459a993c11ac29b65fadf18db55e557cfe7d18c3abc
MD5 ca222413d50a33cb573d9f1ea95f7581
BLAKE2b-256 8ade87c7ba8679fb0a68aaba03008e522731904f1e6eb7f0ea987bd9c559e8df

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