Skip to main content

AI-powered even number detection using GPT or Gemini

Project description

VibeIsEven

"Why use math when you have AI?"

VibeIsEven is a satirical, production-quality Python package that determines if a number is even by asking a large language model (LLM) like OpenAI GPT or Gemini, instead of using arithmetic. It’s a parody of using AI for trivial tasks, but is fully functional and well-structured.

Installation

pip install vibeiseven

Usage

Set your API key as an environment variable:

  • For OpenAI: OPENAI_API_KEY
  • For Gemini: GEMINI_API_KEY
from vibeiseven import vibeiseven, vibeiseven_batch

print(vibeiseven(42))  # True
print(vibeiseven(13, provider='gemini'))  # False
print(vibeiseven_batch([1, 2, 3, 4]))  # [False, True, False, True]

Example

See vibeiseven/example.py for a runnable example.

Development

  • Clone the repo
  • Install dependencies: pip install -r requirements.txt
  • Run tests/examples with real API keys

Contributing

Pull requests are welcome! For major changes, please open an issue first.

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

vibeiseven-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

vibeiseven-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vibeiseven-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1e021503b66b23fcb12357fe7271a3fadbe476a1a9a8b291d140efb19534f7f3
MD5 ec3268310df04172090c6671751b2c4d
BLAKE2b-256 f0fbe71d1de99dbf1e59409251317580c7b1e7f17fec00ad0a5749e6a1e67d30

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vibeiseven-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae687d698da839c45c9cbc75de36d0f4fc4774300b76e13bb18430794aa11a1
MD5 c9b8a7a72a1c24342766e430770e8dd0
BLAKE2b-256 5a7fe417ca64eb91fff26f408ea58d955616242bb8bc8292d64588d08a57e60f

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