A very minimal http-status-message to http-status-code package.
Project description
httpcodes
Http codes is a minimal package the literally maps the status-message to a status-code. The only use-case of this package is to increase readability in your code.
Installing
Install and update using pip
:
pip install -U httpcodes
A Simple Example
import httpcodes
print(httpcodes.OK)
print(httpcodes.NOT_FOUND)
print(httpcodes.IM_A_TEAPOT)
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size httpcodes-1.0.0-py3-none-any.whl (3.4 kB) | File type Wheel | Python version py3 | Upload date | Hashes View hashes |
Filename, size httpcodes-1.0.0.tar.gz (2.2 kB) | File type Source | Python version None | Upload date | Hashes View hashes |
Close
Hashes for httpcodes-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 798f9684d9a483f76165dde2fffec9cf652cb69665f489cbaf380ed1fadecd8c |
|
MD5 | 6667ba1309f1f3f92a795eafb95f8240 |
|
BLAKE2-256 | fc3b034df79263d59bee79db7c109bce90bed5d0c5a44bde16981eb1bfc99b31 |