skillfed

python-status

HTTP Status for Humans

python-status v1.0.1 135.9K downloads/30d#11,413 on PyPI274
Permissive license BSD Abandoned released

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

uv

uv add python-status

poetry

poetry add python-status

Installing 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

Development Status :: 6 - MatureIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: InternetTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Tags

http status codes constantsreadable http status namesstatus code helper methodshttp response classificationhuman readable status codesstatus code utilitieshttp status checking
http-utilitiesabandoned

More Libraries packages