Skip to main content

Quickly look up HTTP codes in the terminal

Project description

HTTP Code Lookup

Allows you to very quickly view and search an offline version of the Wikipedia's HTTP Codes page.

What the hell is this?

Look up specific codes

code lookup

Filter using wildcards

wildcard lookup

Don't know the status code?

text lookup

How to Install

pipx install hhttpcode

Arguments

The usage for the tool is as follows:

http-code <search_term> --output-as-json --no-pretty --indent-size --no-colour
  • <search_term>
    • Mandatory: Can be either a 3 digit code (use x to replace unknowns, eg: 2xx for all codes starting with 2) or a text search.
  • --output-as-json
    • Optional: Output as JSON, by default will pretty-print JSON... use --no-pretty to disable
  • --no-pretty
    • Optional: Disable pretty printing of JSON, does nothing without --output-as-json flag set
  • --indent-size
    • Optional: Change the default (2) indent size
  • --no-colour
    • Optional: Disable colour for non-JSON output

How to test

python tests/test.py

Known Issues

  • Tests don't run on Windows systems :|

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

hhttpcode-1.0.5.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hhttpcode-1.0.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file hhttpcode-1.0.5.tar.gz.

File metadata

  • Download URL: hhttpcode-1.0.5.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for hhttpcode-1.0.5.tar.gz
Algorithm Hash digest
SHA256 3ac2c726d2b8b56da179dc26bf42a3fec414a16b9868cd30cf0b92a17567534d
MD5 89ffdd3b84138c0b06b6b0a0b8d850d3
BLAKE2b-256 65ae5c04a0738304c83515e9001d50dcc9b23e0f088297dba7889f96d12fd7e7

See more details on using hashes here.

File details

Details for the file hhttpcode-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: hhttpcode-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for hhttpcode-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 acdb05e9a821cd8b4425aac7078c081d0ed11a7a4600524d8dfea07e3c81451b
MD5 57e3e71b1cdf220868d7f7675141d773
BLAKE2b-256 7920c5a8f8d552ea2302340af5a071006f4a2e66f80e75bed8947dd5be6d35df

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