openai_is_even
A Python package that uses OpenAI to check if numbers are even ✨
Description
Instead of using boring traditional math to check if a number is even, this package asks OpenAI's GPT model to determine the evenness of numbers with AI-powered vibes.
Installation
pip install openai-is-even
Or with uv:
uv add openai-is-even
Requirements
- Python >= 3.10
- OpenAI API key set in the
OPENAI_API_KEYenvironment variable
Usage
export OPENAI_API_KEY=your_key_here
from openai_is_even import openai_is_even
# Check if numbers are even
result = openai_is_even(4) # Returns True
result = openai_is_even(3) # Returns False
Development
This project uses uv for dependency management.
Setup
# Clone the repository
git clone https://github.com/d-costa/openai_is_even.git
cd openai_is_even
# Install dependencies
uv sync
# Set up your OpenAI API key
export OPENAI_API_KEY="your-api-key-here"
Running Tests
uv run pytest -v
Disclaimer
This package is for entertainment and educational purposes. Please use traditional mathematical operations to check if numbers are even. 😄
Inspired by https://github.com/abyesilyurt/vibesort
Metadata
Release files for openai-is-even 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openai_is_even-1.0.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openai_is_even-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / openai_is_even-1.0.1.tar.gz
| Download URL | openai_is_even-1.0.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca018d2063afb400e3811ac8272bf4fb7718997c9c68c3c1920d3f37974ca3e9
|
|
BLAKE2b-256 checksum How to use checksums |
567336126cdf6ce67bbe2e5737c43ed8d62b97922bfb8d793b173825ed9c2dff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Release files / openai_is_even-1.0.1-py3-none-any.whl
| Download URL | openai_is_even-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a6bcebbc604cf5838d99407d49f48f1107ddc137c612887fdaf3258b603a3a6
|
|
BLAKE2b-256 checksum How to use checksums |
bcc91a569dff3e7a591dfc3333536b0003c02c2d98343c4db4d8685521da7e19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|