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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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