Registry / devops / status

status

JSON →
library0.2.5pypypi✓ verified 80d ago

A Python library for reporting HTTP status codes of GET and POST requests. Provides a simple interface to check website responses. Current version 0.2.5, released with minimal maintenance.

pip install status
INSTALL
IMPORT
SIG · STATUS
S
status
devopspythonv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Status
import status
from status import Status

Create a Status object for a URL and access status_code and ok properties. Optionally set a timeout.

from status import Status # Check a URL url = 'https://example.com' s = Status(url) print(s.status_code) # e.g., 200 print(s.ok) # True for success # GET request with timeout s2 = Status(url, timeout=5) print(s2.status_code)
Debug
Known issues
deprecatedThe library has not been updated in several years. It may not work with Python 3.11+ due to deprecated httplib usage.
fix
Use the 'requests' library instead for modern HTTP status checks.
affects: >=3.11
gotchaThe Status constructor makes an actual HTTP request. It may raise ConnectionError or TimeoutError which are not documented.
fix
Wrap usage in try/except: try: Status('url') except Exception as e: print(e)
affects: all
Upgrade
Version history
0.2.5latest on PyPI · released Jan 7, 2015
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
status — pip install status · libregistry