is-odd-ai
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.
Metadata
Release files for is-odd-ai 0.0.2.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| is_odd_ai-0.0.2.post1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| is_odd_ai-0.0.2.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / is_odd_ai-0.0.2.post1.tar.gz
| Download URL | is_odd_ai-0.0.2.post1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48c31169609b86faa3b9c93685230b912bb70c4929cf83090c41f4d07937490f
|
|
BLAKE2b-256 checksum How to use checksums |
b30abe6a8d6567c206b17fa3b16ab1e06e76dc22852e5a1b3a3c44d31f455cb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / is_odd_ai-0.0.2.post1-py3-none-any.whl
| Download URL | is_odd_ai-0.0.2.post1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2143b96c47d32acb890005a0f0acb58f1d8409685f65ee0b49758faf599f667
|
|
BLAKE2b-256 checksum How to use checksums |
07d42bdd114fa6433034cbc58354ba4e23e0aed8d2fb0816dd139c78d916a84b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for is-odd-ai 0.0.2.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.