Skip to main content

Check if a number is odd or even using AI

Project description

is-odd-ai

PyPI - Version

A project inspired by the npm version is-odd-ai

is-odd-ai uses OpenAI's GPT-4o-mini model to determine if a number is odd or even. AI to the moon 🚀🚀🌝!

Installation

To install is-odd-ai, use pip:

pip install is-odd-ai

Usage

To use is-odd-ai, you will need an OpenAI key.

Here is an example.

from is_odd_ai import OddChecker

odd_checker = OddChecker("api key here")
odd_checker.is_odd(5) # True
odd_checker.is_odd(6) # False
odd_checker.is_odd("abc") # Hopefully a ValueError. AI to the moon!

Contributing

Be part of this project! Open to contributions.

License

MIT License.

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

is_odd_ai-0.0.2.post1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

is_odd_ai-0.0.2.post1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file is_odd_ai-0.0.2.post1.tar.gz.

File metadata

  • Download URL: is_odd_ai-0.0.2.post1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for is_odd_ai-0.0.2.post1.tar.gz
Algorithm Hash digest
SHA256 48c31169609b86faa3b9c93685230b912bb70c4929cf83090c41f4d07937490f
MD5 dafc1db2d29b8f8049aa97f41fe3bfe8
BLAKE2b-256 b30abe6a8d6567c206b17fa3b16ab1e06e76dc22852e5a1b3a3c44d31f455cb2

See more details on using hashes here.

File details

Details for the file is_odd_ai-0.0.2.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for is_odd_ai-0.0.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2143b96c47d32acb890005a0f0acb58f1d8409685f65ee0b49758faf599f667
MD5 ffab1c51178e42c485502401b887ed92
BLAKE2b-256 07d42bdd114fa6433034cbc58354ba4e23e0aed8d2fb0816dd139c78d916a84b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page