python-status
HTTP Status for Humans
What it is and what it does
python-status is a minimal library that maps HTTP status codes to named constants and provides utility functions to classify response types. Instead of writing `return ('response', 201)`, you write `return ('response', status.HTTP_201_CREATED)`, making code more readable. It includes helper methods like `is_success()`, `is_client_error()`, and `is_server_error()` to check response classifications.
The package has no runtime dependencies and is a straightforward constant-and-function collection. It was originally created as a standalone extraction from Django Rest Framework and is independently maintained. However, the project is abandoned—the last release was 2015-10-17 and there have been no updates since, despite the repository remaining unarchived.
Use it for:
- Replace magic HTTP status numbers with named constants in Flask or Django view handlers for clearer code.
- Check response status types in scripts using the Requests library without hardcoding numeric comparisons.
- Provide a consistent status code reference across a custom HTTP API or microservice.
- Improve code readability in conditional logic that branches on HTTP response codes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides named constants for HTTP status codes and helper methods to classify response types, replacing numeric status codes with readable names like HTTP_200_OK.
No. The package is abandoned (last updated 2015-10-17) and targets obsolete Python versions (2.7, 3.3–3.5). High install friction and lack of maintenance make this a poor choice for new projects. Alternatives may provide equivalent functionality with active support.
Install
python-status on PyPI
pip
pip install python-statusuv
uv add python-statuspoetry
poetry add python-statusInstalling python-status
Before you install
High install friction with no runtime dependencies. Package is abandoned—last release was 2015-10-17 with no updates since, though the repository remains unarchived. Classifiers claim support for Python 2.7 and 3.3–3.5, all of which are end-of-life.
License in practice
BSD license (permissive). No restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install python-status
import status
if status.is_success(code=200):
print('Success')
print(status.HTTP_200_OK == 200) # True
Package targets Python 2.7 and 3.3–3.5; compatibility with modern Python versions is unverified.
Verify before relying
- Whether the package actually works on Python versions newer than 3.5 despite classifier claims.
- Whether high install friction refers to a compiled dependency or other build-time requirement not evident in the description.
- Whether the package is compatible with current Python interpreters in active use.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,954 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 135,927/month — #11,413 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python-status-1.0.1.tar.gz
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
exit-codesProvides platform-independent exit codes for…
permissive · top 15,000 on PyPI
exitstatusProvides portable, type-safe POSIX exit status…
permissive · top 15,000 on PyPI
humanfriendlyFormats and parses numbers, file sizes,…
permissive · top 1,000 on PyPI
codenamizeGenerates consistent, human-readable codenames…
permissive · top 15,000 on PyPI
resultProvides a Rust-inspired Result type for Python…
permissive · top 5,000 on PyPI
http-exceptionsProvides a set of raisable exception classes…
permissive · top 15,000 on PyPI
constantlyProvides symbolic constant support in Python,…
permissive · top 5,000 on PyPI
ntstatusProvides Python constants and lookup methods…
permissive · top 15,000 on PyPI
aiosonicAn asyncio HTTP/1.1, HTTP/2, and WebSocket…
permissive · top 15,000 on PyPI
pytest-httpx2A pytest plugin that mocks httpx2 HTTP requests…
permissive · top 15,000 on PyPI