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 details)
Built Distribution
File details
Details for the file StatusCode-1.0.0.tar.gz
.
File metadata
- Download URL: StatusCode-1.0.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67c288984ab3f50802d0350e6575000c3abebb1ce939635aff8c7b5fcfed83f |
|
MD5 | 73a7f153a4c2b86b4a53dff8c82c5d6a |
|
BLAKE2b-256 | 2447cad73be9fc4a53962c02bdcae6cf63cc003a32e4865937a1615d97969363 |
File details
Details for the file StatusCode-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: StatusCode-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddbf7f8096f82540f867054c79709672aae32ba6c6a534f33bf08d3e1f0b1b85 |
|
MD5 | 9b9c511e4cfca6870a672d8068ff96bf |
|
BLAKE2b-256 | 749e3b1ea39c91110d52876e3526d90dcaf434b06f976b6b870cf048f9824d13 |