Skip to main content

James Iter's common library by python.

Project description

建议

  • 基于各主干的枝叶状态码从50开始,如412主干,则用户自定义枝叶状态码由41250起。


示例

  • 枝叶状态码合并

own_state_branch = {
        '41250': {
            'code': '41250',
            'zh-cn': '账密不匹配'
            }
        }
ji.state_code.index_state['branch'] = dict(ji.state_code.index_state['branch'], **own_state_branch)
print json.dumps(ji.Commons.exchange_state(41250), ensure_ascii=False)

{
    "code": "412",
    "zh-cn": "先决条件失败",
    "en-us": "Precondition Failed",
    "sub": {
        "zh-cn": "账密不匹配",
        "code": "41250"
    }
}

Project details


Release history Release notifications | RSS feed

This version

0.16

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jimit-0.16.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page