Skip to main content

A simple utility for handling auth header python requests.

Project description

Omniquestor

A simple utility for handling auth header python requests.

Instantiate the class with a url, an auth header token, and a request type of get, post, put, or delete. Then save the response by calling the response() function. Example usages:

endpoint_url = www.example-site.com/auth auth_header = "Authorization": "Bearer <token value>"

get_example_omniquestor = Omniquestor(endpoint_url, headers=auth_header, request_type="get") get_example_response = get_example_omniquestor.response()

For requests with an item id be sure to include it in the endpoint_url:

get_item_url = www.example-site.com/01 post_item_url = www.example-site.com/01 put_item_url = www.example-site.com/01 delete_item_url = www.example-site.com/01

Then usage is the same as above:

put_item_example_omniquestor = Omniquestor(endpoint_url, headers=auth_header, request_type="put") put_item_example_response = put_item_example_omniquestor.response()

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

Omniquestor-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Omniquestor-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file Omniquestor-0.0.2.tar.gz.

File metadata

  • Download URL: Omniquestor-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for Omniquestor-0.0.2.tar.gz
Algorithm Hash digest
SHA256 09efed5f9277e6ab7c386384cf2f41529159275a347be3e01d4c48c09fa1f224
MD5 d8cf3c7f8a0b9538c0b81441b4c295b5
BLAKE2b-256 2d3912433a24f0a93e42890d1a0c88a168a32ca64090c9e5c47234c99b66b6bb

See more details on using hashes here.

File details

Details for the file Omniquestor-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Omniquestor-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for Omniquestor-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f94375c87b29691112ad5febd511a8dc0664604c9592a6c6c1679440063d05b9
MD5 989fc9067b3d0a396b670afe5ce4914f
BLAKE2b-256 43f60cee936adc16ee6778e9bade7e4b8d91c1e0624336decb03bedb713242c6

See more details on using hashes here.

Supported by

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