Skip to main content

Monkeypatch the python interpreter and debugger to print integer results in hex

Project description

monkeyhex.py is a small library to assist users of the python shell who work in contexts where printed numbers are more usefully viewed in hexadecimal.

Monkeyhex, as the name suggests, monkeypatches the system displayhook as well as the pprint and pdb modules to format integers as hex. To use it, just import the library and all future results will be formatted. To view a result in decimal again, put the expression in a print statement.

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

monkeyhex-1.7.3.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file monkeyhex-1.7.3.tar.gz.

File metadata

  • Download URL: monkeyhex-1.7.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for monkeyhex-1.7.3.tar.gz
Algorithm Hash digest
SHA256 c121e734ccae8f1be6f1ecaf9100f3f8bde0a2dd03979b8ba42c474b1978806e
MD5 88e34c512ee33eeccad3d6b0c08019b3
BLAKE2b-256 448694462bbcdad5c9c6f54b725ab0ad3844fe88e186f1fd7497ff8892d0cce5

See more details on using hashes here.

Supported by

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