Skip to main content

StatusCode

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>)

Metadata

Release files for StatusCode 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for StatusCode 1.0.0
File Size Uploaded Provenance Actions
StatusCode-1.0.0.tar.gz 1.7 kB Without provenance Details for StatusCode-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for StatusCode 1.0.0
File Interpreter ABI Platform Actions
StatusCode-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for StatusCode-1.0.0-py2.py3-none-any.whl

Total release size: 5.2 kB

Release files / StatusCode-1.0.0.tar.gz

Download URL StatusCode-1.0.0.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b67c288984ab3f50802d0350e6575000c3abebb1ce939635aff8c7b5fcfed83f
BLAKE2b-256 checksum
How to use checksums
2447cad73be9fc4a53962c02bdcae6cf63cc003a32e4865937a1615d97969363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / StatusCode-1.0.0-py2.py3-none-any.whl

Download URL StatusCode-1.0.0-py2.py3-none-any.whl
Size 3.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ddbf7f8096f82540f867054c79709672aae32ba6c6a534f33bf08d3e1f0b1b85
BLAKE2b-256 checksum
How to use checksums
749e3b1ea39c91110d52876e3526d90dcaf434b06f976b6b870cf048f9824d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for StatusCode 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page