Simple Python package to check if string is valid hexadecimal.
Project description
✅ 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
isHex-1.1.0.tar.gz
(15.0 kB
view details)
Built Distribution
isHex-1.1.0-py3-none-any.whl
(14.5 kB
view details)
File details
Details for the file isHex-1.1.0.tar.gz
.
File metadata
- Download URL: isHex-1.1.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c28d41b04a715e119dc370049aa7935cdf0b69c8f853650506c6e98ebde26d |
|
MD5 | 2eb9ba78ffbe60254b64826298649cbd |
|
BLAKE2b-256 | 11530872e0a9f593bb14d0c1ff122f946bc50f8bebfb0dd391e651a2b772242a |
File details
Details for the file isHex-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: isHex-1.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934ec3ba9b8a717414eea5f85a4f278c60d2783e2983d4e3aa15944460f78415 |
|
MD5 | d0f8893801310b550f59dd32371cace1 |
|
BLAKE2b-256 | 917d5bf8f12126ac6662098ad74c64718e3d28d04cdcc94393b13f97468c429f |