# is-odd-ai
![PyPI - Version](https://img.shields.io/pypi/v/is-odd-ai)
A project inspired by the npm version [`is-odd-ai`](https://github.com/rhettlunn/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.
```py
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "is-odd-ai",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "odd, even, is odd, is even, is odd ai, is even ai, ai",
"author": "recreationx",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b3/0a/be6a8d6567c206b17fa3b16ab1e06e76dc22852e5a1b3a3c44d31f455cb2/is_odd_ai-0.0.2.post1.tar.gz",
"platform": null,
"description": "# is-odd-ai\r\n![PyPI - Version](https://img.shields.io/pypi/v/is-odd-ai)\r\n\r\nA project inspired by the npm version [`is-odd-ai`](https://github.com/rhettlunn/is-odd-ai)\r\n\r\n`is-odd-ai` uses OpenAI's GPT-4o-mini model to determine if a number is odd or even. AI to the moon \ud83d\ude80\ud83d\ude80\ud83c\udf1d!\r\n\r\n## Installation\r\nTo install `is-odd-ai`, use pip:\r\n```\r\npip install is-odd-ai\r\n```\r\n\r\n## Usage\r\nTo use `is-odd-ai`, you will need an OpenAI key.\r\n\r\nHere is an example.\r\n```py\r\nfrom is_odd_ai import OddChecker\r\n\r\nodd_checker = OddChecker(\"api key here\")\r\nodd_checker.is_odd(5) # True\r\nodd_checker.is_odd(6) # False\r\nodd_checker.is_odd(\"abc\") # Hopefully a ValueError. AI to the moon!\r\n```\r\n\r\n## Contributing\r\nBe part of this project! Open to contributions.\r\n\r\n## License\r\nMIT License.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Check if a number is odd or even using AI",
"version": "0.0.2.post1",
"project_urls": {
"Issues": "https://github.com/recreationx/is-odd-ai/issues",
"Repository": "https://github.com/recreationx/is-odd-ai"
},
"split_keywords": [
"odd",
" even",
" is odd",
" is even",
" is odd ai",
" is even ai",
" ai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "07d42bdd114fa6433034cbc58354ba4e23e0aed8d2fb0816dd139c78d916a84b",
"md5": "ffab1c51178e42c485502401b887ed92",
"sha256": "c2143b96c47d32acb890005a0f0acb58f1d8409685f65ee0b49758faf599f667"
},
"downloads": -1,
"filename": "is_odd_ai-0.0.2.post1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ffab1c51178e42c485502401b887ed92",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3428,
"upload_time": "2024-10-20T09:27:35",
"upload_time_iso_8601": "2024-10-20T09:27:35.192946Z",
"url": "https://files.pythonhosted.org/packages/07/d4/2bdd114fa6433034cbc58354ba4e23e0aed8d2fb0816dd139c78d916a84b/is_odd_ai-0.0.2.post1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b30abe6a8d6567c206b17fa3b16ab1e06e76dc22852e5a1b3a3c44d31f455cb2",
"md5": "dafc1db2d29b8f8049aa97f41fe3bfe8",
"sha256": "48c31169609b86faa3b9c93685230b912bb70c4929cf83090c41f4d07937490f"
},
"downloads": -1,
"filename": "is_odd_ai-0.0.2.post1.tar.gz",
"has_sig": false,
"md5_digest": "dafc1db2d29b8f8049aa97f41fe3bfe8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3272,
"upload_time": "2024-10-20T09:27:36",
"upload_time_iso_8601": "2024-10-20T09:27:36.831698Z",
"url": "https://files.pythonhosted.org/packages/b3/0a/be6a8d6567c206b17fa3b16ab1e06e76dc22852e5a1b3a3c44d31f455cb2/is_odd_ai-0.0.2.post1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-20 09:27:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "recreationx",
"github_project": "is-odd-ai",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "is-odd-ai"
}