Skip to main content

AI-powered odd number detection using GPT

Project description

VibeIsOdd

PyPI
License: MIT

Why use math when you can use AI?

VibeIsOdd is the most over-engineered way to check if a number is odd. Instead of using arithmetic, it asks a large language model (like OpenAI GPT or Gemini) if your number is odd. Because, why not?

🤔 What is this?

A parody Python package that uses AI to answer the age-old question: "Is this number odd?" It’s a real, installable package with all the trimmings—just for fun (and maybe a little learning).

🚀 Installation

pip install vibeisodd

Or, for the truly adventurous:

git clone https://github.com/yourusername/VibeIsOdd.git
cd VibeIsOdd
pip install .

🔑 Setup

You'll need an API key for your chosen AI provider (OpenAI or Gemini). Set it as an environment variable:

  • For OpenAI: OPENAI_API_KEY
  • For Gemini: GEMINI_API_KEY

Example (PowerShell):

$env:OPENAI_API_KEY="your-openai-key"
$env:GEMINI_API_KEY="your-gemini-key"

🤖 Usage

from vibeisodd import vibeisodd

print(vibeisodd(7))  # True (7 is odd, confirmed by AI)
print(vibeisodd(8))  # False (8 is even, AI never lies)

Batch Processing

from vibeisodd import vibeisodd_batch

numbers = [1, 2, 3.0, 4.5]
results = vibeisodd_batch(numbers)
print(results)  # [True, False, True, True]

Example Script

You can also run the included example:

python -m vibeisodd.example

🛠 Development

  1. Clone the repo
  2. Install dependencies: pip install -r requirements.txt
  3. Set your API key(s)
  4. Run tests/examples

📦 Package Info

😂 Why does this exist?

Because sometimes, you just want to see what happens when you replace a one-line function with a large language model. For science. For fun. For the memes.

🧑‍💻 Contributing

PRs welcome! Bonus points for adding even more unnecessary AI.

📄 License

MIT

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

vibeisodd-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

vibeisodd-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file vibeisodd-1.0.0.tar.gz.

File metadata

  • Download URL: vibeisodd-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for vibeisodd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 91b937be7ea5a7f923ca467b70b490a43c0ef914a3c6cb6c6c7a0cd0d5b767f8
MD5 4f0bda2dbcd59c741d4f690800bf6212
BLAKE2b-256 7427753e10174c5dbfd428885fe1921cc03b1ceb12b7ec9b983cfd4f61dded8e

See more details on using hashes here.

File details

Details for the file vibeisodd-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vibeisodd-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for vibeisodd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92b1e18601b551c0591f1e79b63c1238cc56afa8c5a1afb0afea3d87a56647f5
MD5 af454f8b2134a2df2ea26ddda412460f
BLAKE2b-256 fdb388a65fbcb9b0d20b16d75052f4273213785a3115467b633942f8d7d114d9

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