Skip to main content

✅ isHex

Simple Python package to check if string is valid hexadecimal.

🚀 Usage

from isHex import isHex, isHexUpper, isHexLower

# Check invalid hexadecimal
isHex('abcg7') # Returns False

# Check valid hexadecimal
isHex('aBcDeF1234567890') # Returns True

# Check valid hexidecimal, ensuring that it is in uppercase
isHexUpper('ABCDEF') # Returns True
isHexUpper('abcdef') # Returns False

# Check valid hexidecimal, ensuring that it is in lowercase
isHexLower('abcdef') # Returns True
isHexLower('ABCDEF') # Returns False

📦 Installation

Run the following to install:

$ pip install isHex

👨‍💻 Developing isHex

To install isHex, along with the tools you will need to develop and run tests, run the following in your virtualenv:

$ pip install -e .[dev]

🚦 Development Progress

Stable Development

Metadata

Release files for isHex 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 isHex 1.1.0
File Size Uploaded Provenance Actions
isHex-1.1.0.tar.gz 15.0 kB Without provenance Details for isHex-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 29.5 kB

Release files / isHex-1.1.0.tar.gz

Download URL isHex-1.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
28c28d41b04a715e119dc370049aa7935cdf0b69c8f853650506c6e98ebde26d
BLAKE2b-256 checksum
How to use checksums
11530872e0a9f593bb14d0c1ff122f946bc50f8bebfb0dd391e651a2b772242a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

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

Download URL isHex-1.1.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
934ec3ba9b8a717414eea5f85a4f278c60d2783e2983d4e3aa15944460f78415
BLAKE2b-256 checksum
How to use checksums
917d5bf8f12126ac6662098ad74c64718e3d28d04cdcc94393b13f97468c429f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for isHex 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.

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.

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