http-constants-0.5.0


توضیحات

The set of standard http constants for headers and statuses
ویژگی مقدار
سیستم عامل -
نام فایل http-constants-0.5.0
نام http-constants
نسخه کتابخانه 0.5.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Stephen Ohimor
ایمیل نویسنده stephen.ohimor@gmail.com
آدرس صفحه اصلی https://github.com/ohimors/http-constants
آدرس اینترنتی https://pypi.org/project/http-constants/
مجوز MIT
# Http Constants A set of constants for HTTP statuses and headers. ## Installation You can install Http Constants from [PyPI](https://pypi.org/project/http-constants/): pip install http-constants The library is supported on Python 3.7+. ## Usage ### Headers ```py from http_constants.headers import HttpHeaders >>> HttpHeaders.ACCEPT 'Accept' >>> HttpHeaders.CONTENT_TYPE_VALUES.json 'application/json' ``` ### Statuses ```py from http_constants.status import HttpStatus >>> HttpStatus.SERVICE_UNAVAILABLE <HttpStatus.SERVICE_UNAVAILABLE: (503, 'Service Unavailable')> >>> HttpStatus.SERVICE_UNAVAILABLE.value 503 >>> int(HttpStatus.SERVICE_UNAVAILABLE) 503 >>> HttpStatus.SERVICE_UNAVAILABLE.reason_phrase 'Service Unavailable' >>> str(HttpStatus.SERVICE_UNAVAILABLE) '503 SERVICE_UNAVAILABLE' ```


زبان مورد نیاز

مقدار نام
>=3.6.0 Python


نحوه نصب


نصب پکیج whl http-constants-0.5.0:

    pip install http-constants-0.5.0.whl


نصب پکیج tar.gz http-constants-0.5.0:

    pip install http-constants-0.5.0.tar.gz