AI-powered odd number detection using GPT
Project description
VibeIsOdd
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
- Clone the repo
- Install dependencies:
pip install -r requirements.txt - Set your API key(s)
- Run tests/examples
📦 Package Info
- Version: 1.0.0
- Author: Your Name
- License: MIT
- Repo: https://github.com/yourusername/VibeIsOdd
😂 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91b937be7ea5a7f923ca467b70b490a43c0ef914a3c6cb6c6c7a0cd0d5b767f8
|
|
| MD5 |
4f0bda2dbcd59c741d4f690800bf6212
|
|
| BLAKE2b-256 |
7427753e10174c5dbfd428885fe1921cc03b1ceb12b7ec9b983cfd4f61dded8e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92b1e18601b551c0591f1e79b63c1238cc56afa8c5a1afb0afea3d87a56647f5
|
|
| MD5 |
af454f8b2134a2df2ea26ddda412460f
|
|
| BLAKE2b-256 |
fdb388a65fbcb9b0d20b16d75052f4273213785a3115467b633942f8d7d114d9
|