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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpcodes-1.0.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpcodes-1.0.0.tar.gz.
File metadata
- Download URL: httpcodes-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e7802b40f5b59acae27b464f9b0281835cca69ca2037bd1ce78fff4918c33a4
|
|
| MD5 |
8ef9c457b9f32050084e30cc7b53a1ac
|
|
| BLAKE2b-256 |
850b14dbcd675e62f1b792e66464c7a75e05449ef0de89ad05e01ba91cccb6e7
|
File details
Details for the file httpcodes-1.0.0-py3-none-any.whl.
File metadata
- Download URL: httpcodes-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
798f9684d9a483f76165dde2fffec9cf652cb69665f489cbaf380ed1fadecd8c
|
|
| MD5 |
6667ba1309f1f3f92a795eafb95f8240
|
|
| BLAKE2b-256 |
fc3b034df79263d59bee79db7c109bce90bed5d0c5a44bde16981eb1bfc99b31
|