Skip to main content

Status code handler

Library for handler GET requests comparing their status code.

Installation

$ pip3 install request_handler

Get started

How to compare the status code to know if continue or stop.

from request_handler import RequestHandler

if __name__ == '__main__':
    handler = RequestHandler('https://catfact.ninja/fact')
    handler_jsoned = handler.check_json_response()
    if handler_jsoned:
        print(handler_jsoned)
    else:
        print("[-] Exiting...")
        exit(1)
 

Metadata

Release files for request-handler 0.1.3

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

Source distribution (sdist)

Source distribution for request-handler 0.1.3
File Size Uploaded Provenance Actions
request-handler-0.1.3.tar.gz 2.6 kB Without provenance Details for request-handler-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for request-handler 0.1.3
File Interpreter ABI Platform Actions
request_handler-0.1.3-py3-none-any.whl Python 3 none any Details for request_handler-0.1.3-py3-none-any.whl

Total release size: 5.3 kB

Release files / request-handler-0.1.3.tar.gz

Download URL request-handler-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
59b5473389542e8b7ea898f074efb350d21a3eee7688b125e48ec51eb5375fcb
BLAKE2b-256 checksum
How to use checksums
a303d3e92da0b03d1e22e9c234b7780b9b443baba2473ea56f9d7a249c2023eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / request_handler-0.1.3-py3-none-any.whl

Download URL request_handler-0.1.3-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7da0a329a9fafaf8f4bff2b6799c55726a8b1b26b36f55f8de94212855cf91e2
BLAKE2b-256 checksum
How to use checksums
bf287ec39e4e7a30e8c4aff2397b15331aa6dbad0ee58e7a00a5ccc33634951b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Security for request-handler 0.1.3

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

0.1.3 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