Skip to main content

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

Unstable 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.0.1.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

isHex-1.0.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file isHex-1.0.1.tar.gz.

File metadata

  • Download URL: isHex-1.0.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for isHex-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a9f75610aa40bb345d94e4128dea8a2e281f7e525555596ea235fceac567cde2
MD5 fc42402eefea2f43f8733ac35e841daa
BLAKE2b-256 ae714d5cdd94684337aeaf7aec59788028d4bf9cc0823ab79f5a76bd9aba4130

See more details on using hashes here.

File details

Details for the file isHex-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: isHex-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for isHex-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39627a55d601234236cefcb2904b2c982c6753edaaf205401448a29f44a3c852
MD5 8c2dc8956232bd4042d5c434cb3211fe
BLAKE2b-256 725235857b34fd6fa42738d3c35303dc484d0eba9a7bf97da0ea3a659f01e26b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page