Skip to main content

Request handler library

Project description

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)
 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

request-handler-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

request_handler-0.1.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file request-handler-0.1.3.tar.gz.

File metadata

  • Download URL: request-handler-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for request-handler-0.1.3.tar.gz
Algorithm Hash digest
SHA256 59b5473389542e8b7ea898f074efb350d21a3eee7688b125e48ec51eb5375fcb
MD5 fe650f68e88b5e6068cb942e785f2b3c
BLAKE2b-256 a303d3e92da0b03d1e22e9c234b7780b9b443baba2473ea56f9d7a249c2023eb

See more details on using hashes here.

File details

Details for the file request_handler-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for request_handler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7da0a329a9fafaf8f4bff2b6799c55726a8b1b26b36f55f8de94212855cf91e2
MD5 d6d81c66a6f8b343c4d3d2bcea5e19fb
BLAKE2b-256 bf287ec39e4e7a30e8c4aff2397b15331aa6dbad0ee58e7a00a5ccc33634951b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page