pyhttpstatus-utils
Extension of Python Standard Library’s http.HTTPStatus providing mapping of HTTP statuses.
Badges
docs |
|
|---|---|
info |
|
tests |
|
package |
|
other |
Install
pip install pyhttpstatus-utils
Functions
create_http_status_dict(override_dict=None): Create HTTP Status Dictionary with Overrides if provided.
get_http_status_desc(http_status_code): Get HTTP status code description.
get_http_status_name(http_status_code): Get HTTP status code name.
get_http_status_phrase(http_status_code): Get HTTP status code phrase.
get_http_status_type(http_status_code): Get HTTP status code type.
is_http_status_successful(http_status_code): Check if HTTP Status Code is type Successful
is_http_status_type(http_status_code): Match if provided HTTP Status Code is expected HTTP Status Code Type.
validate_http_code(http_code, minimum=100, maximum=599, strict=True, default_http_code=0): Validate HTTP code. If strict, throw, else just return default_http_code.
Dictionaries
HTTP_STATUS_DICT: Extracted from http.HTTPStatus, a dictionary of each HTTP Status’ name, code, phrase, and description.
HTTP_STATUS_PHRASE_DICT: Phrases of HTTP status codes.
HTTP_STATUS_DESC_DICT: Description of HTTP status codes.
HTTP_STATUS_TYPE_DICT: Types of HTTP status codes.
Enum Classes
HttpStatusCode: Static enumeration of HTTP status mapping names to codes
HttpStatusType: Static enumeration of HTTP status mapping types to phrase
HttpStatusCodeType: Int enumeration of HTTP status mapping types to codes
HTTP Status Code Types
100: HttpStatusType.INFORMATIONAL,
200: HttpStatusType.SUCCESSFUL,
300: HttpStatusType.REDIRECTION,
400: HttpStatusType.CLIENT_ERROR,
500: HttpStatusType.SERVER_ERROR
Requirements
pyhttpstatus-utils module is built upon Python 3 and has dependencies upon several Python modules available within Python Package Index PyPI.
make install-requirements
or
python3 -m pip uninstall --yes --no-input -r requirements.txt
python3 -m pip install --upgrade -r requirements.txt
Release History
0.3.3 (2018-02-20)
Python 2.7 supported
Travis CI testing both Python 2.7 and 3.6.
Backport Python 3.6 http.HttpStatus for support in Python 2.7 to Python 3.4.
0.3.2 (2018-02-16)
migrate to github/TuneLab
0.3.1 (2018-01-25)
migrate to github/tuneinc
0.2.2 (2017-12-10)
readthedocs.org
0.2.0 (2017-12-05)
README.rst
Tests
Travis CI
0.1.1 (2016-11-22)
Makefile and yapf cleanup
0.1.0 (2016-11-17)
Initial Code
Code pulled from TuneLab/tune-mv-integration-python
0.0.1 (2016-11-17)
Initial commit
Metadata
Release files for pyhttpstatus-utils 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyhttpstatus-utils-0.3.3.tar.gz | 12.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhttpstatus_utils-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.3 kB
Release files / pyhttpstatus-utils-0.3.3.tar.gz
| Download URL | pyhttpstatus-utils-0.3.3.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fedfe651bad96c4cf48ffb4f6d8fafd491377be0036df8bfb65c6a4b19f41a7
|
|
BLAKE2b-256 checksum How to use checksums |
1387702a313fc17e42bdbbcb1e23c2e057c5ca652fe830bfe0fed3388d4ccfec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyhttpstatus_utils-0.3.3-py3-none-any.whl
| Download URL | pyhttpstatus_utils-0.3.3-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3977f3abb80c1de03498afd12caa4004967209e4528d87bd1ab43b1be9e56e2d
|
|
BLAKE2b-256 checksum How to use checksums |
9f30d6531a8b47dda6a9cdecd6e4b1b6ef0cb2b9bb21dac1645f89927a6c659e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyhttpstatus-utils 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.