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
isHex-1.1.0.tar.gz 15.0 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

0.0.2

2 release files

0.0.1

2 release files

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