Skip to main content

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_KEY environment 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)

Source distribution for openai-is-even 1.0.1
File Size Uploaded
openai_is_even-1.0.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openai-is-even 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page