Skip to main content

is-odd-llm

LLM is so powerful 💪, let's use it to check if a number is odd.

Inspired by is-odd-ai. So I build a Python version of it.

Install

pip install is-odd-llm

Usage

set up your OpenAI API key in the environment variable OPENAI_API_KEY

export OPENAI_API_KEY="sk-..."

then you can use the is_odd function to check if a number is odd.

Example

from is_odd_llm import is_odd

print(is_odd(1))  # high probability is True
print(is_odd(2))  # high probability is False

Contributing

Feel free to open an issue or a PR or any other suggestions.

License

MIT

Metadata

Release files for is-odd-llm 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for is-odd-llm 0.1.0
File Size Uploaded Provenance
is_odd_llm-0.1.0.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for is-odd-llm 0.1.0
File Interpreter ABI Platform
is_odd_llm-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / is_odd_llm-0.1.0.tar.gz

Download URL is_odd_llm-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
970712d7d8dd5f11ff9eea5aceeff14d2d93ddfe8b8bf48e240328dbed5c24a2
BLAKE2b-256 checksum
How to use checksums
7553f62d3f187dc624f3aa57593012f99028b2e2e31d67bf78bc368b47b628b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / is_odd_llm-0.1.0-py3-none-any.whl

Download URL is_odd_llm-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c4c298dded21a9e058a1749f3b41f69ae89dcb0c77e048c0a1f4994872a9ebf
BLAKE2b-256 checksum
How to use checksums
ad4258ec3edb9960c4f42c6e23eee7172098d344a538b5ad98695626b1eedc08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Security for is-odd-llm 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page