{"id":23903,"library":"ishex","title":"ishex","description":"Simple Python package to check if a string is valid hexadecimal. Current version 1.1.0, updated infrequently.","status":"active","version":"1.1.0","language":"python","source_language":"en","source_url":"https://github.com/xhelphin/ishex","tags":["hex","validation","string","utility"],"install":[{"cmd":"pip install ishex","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from ishex import isHex","symbol":"isHex","correct":"from isHex import isHex"},{"symbol":"isHexLower","correct":"from isHex import isHexLower"},{"symbol":"isHexUpper","correct":"from isHex import isHexUpper"}],"quickstart":{"code":"from ishex import isHex, isHexLower, isHexUpper\n\n# Validate a hex string\nprint(isHex(\"1a2b3f\"))  # True\nprint(isHex(\"0x1a2b3f\")) # True (with 0x prefix)\nprint(isHex(\"xyz\"))     # False\n\n# Validate case-specific\nprint(isHexLower(\"1a2b\")) # True\nprint(isHexUpper(\"1A2B\")) # True","lang":"python","description":"Basic usage: check if string is hexadecimal, with optional case validation."},"warnings":[{"fix":"Use 'from ishex import isHex' not 'import ishex' then call 'ishex.isHex' (though that also works, but the function is isHex).","message":"Function names use camelCase (isHex, isHexLower, isHexUpper) while package name is all lowercase (ishex). Ensure correct casing when importing.","severity":"gotcha","affected_versions":"all"},{"fix":"If you need to reject prefixes, strip them before calling isHex().","message":"The functions accept optional '0x' or '0X' prefix by default and treat them as valid hex. Some other hex checkers may reject prefixes. Be aware if you need strict no-prefix validation.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider alternatives like 'binascii' or a custom check if you need active maintenance.","message":"Package is very small and not actively maintained. Last release 1.1.0 (2022). No future updates guaranteed.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.1.0':15 'check':6 'current':13 'hex':18 'hexadecim':12 'infrequ':17 'ishex':1 'packag':4 'python':3 'simpl':2 'string':9,20 'updat':16 'util':21 'valid':11,19 'version':14","created_at":"2026-05-01T08:10:14.126942+00:00","updated_at":"2026-05-01T08:10:14.126942+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.1.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/xhelphin/ishex","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ishex/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}