Python Status Code based on ``kkconst``
Project description
Python Status Code based on kkconst
Installation
pip install StatusCode
Usage
from StatusCode import BaseStatusCode, StatusCodeField class ProfileStatusCode(BaseStatusCode): """ 4000xx - Profile Relative Status Code """ PROFILE_NOT_FOUND = StatusCodeField(410000, 'Profile Not Found', description=u'用户不存在') ProfileStatusCode.PROFILE_NOT_FOUND # 410001 ProfileStatusCode.PROFILE_NOT_FOUND.message # u'Profile Not Found' ProfileStatusCode.PROFILE_NOT_FOUND.description # u'\u7528\u6237\u4e0d\u5b58\u5728'
Requirement
<require all letters capital> = StatusCodeField(<require no duplicated value>, <message>, <description>)
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
StatusCode-1.0.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for StatusCode-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddbf7f8096f82540f867054c79709672aae32ba6c6a534f33bf08d3e1f0b1b85 |
|
MD5 | 9b9c511e4cfca6870a672d8068ff96bf |
|
BLAKE2b-256 | 749e3b1ea39c91110d52876e3526d90dcaf434b06f976b6b870cf048f9824d13 |