Skip to main content

isoddeven

A Python package to check if a number is odd or even.

PyPI - Version Pepy Total Downloads PyPI - License GitHub deployments PyPI - Status

🚀 Installation

You can install the package using pip:

pip install isoddeven

To update the package use this command:

pip install --upgrade isoddeven

📖 Usage

Here's a quick example of how to use it:

from isoddeven import isoddeven

print(isoddeven.isodd(1)) # True
print(isoddeven.isodd(2)) # False
print(isoddeven.iseven(3)) # False
print(isoddeven.iseven(4)) # True
print(isoddeven.state(5)) # odd
print(isoddeven.state(6)) # even

🔷 Run in terminal

You can run it in your terminal by using it's Command Line Interface (CLI) commands:

# Checks if the number is odd or even
isoddeven <number>

# Examples
isoddeven 7
7 is odd

isoddeven 10
10 is even

You can use -o (or --odd) to check if the number is odd, and -e (or --even) to check if it's even. These return True or False.

# Odd Check
isoddeven -o <number>

# Even check
isoddeven -e <number>

# Examples
isoddeven -o 1
True
isoddeven -o 2
False

isoddeven -e 4
True
isoddeven -e 5
False

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for isoddeven 1.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 isoddeven 1.1.0
File Size Uploaded Provenance Actions
isoddeven-1.1.0.tar.gz 3.8 kB With provenance Details for isoddeven-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isoddeven 1.1.0
File Interpreter ABI Platform Actions
isoddeven-1.1.0-py3-none-any.whl Python 3 none any Details for isoddeven-1.1.0-py3-none-any.whl

Total release size: 8.4 kB

Release files / isoddeven-1.1.0.tar.gz

Download URL isoddeven-1.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee8d355c7af5f4451da56df2d07a75c72ebc073125c4ad8fcb1218f6ef25ea8
BLAKE2b-256 checksum
How to use checksums
6f32af718e4fc6819181578c82ea7dc2d8a0815574adb5eada600ff48a8eb5b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.

Transparency log

Release files / isoddeven-1.1.0-py3-none-any.whl

Download URL isoddeven-1.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c3fb85ec5670697b258c44474a2860566f9f79f42dea14c7841d9c716f6aa90
BLAKE2b-256 checksum
How to use checksums
a6bd8cac198bb6491983f85e48c70af158ebe40a32667274b9a6e4478aa231d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.

Transparency log

Security for isoddeven 1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for isoddeven-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.

Transparency log

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.

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