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.1.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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Omniquestor-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f5a43fe3835fdb90d3a04383b7270fa4204e85b6d5af2c6bd8dbeb42ca7e4de6
MD5 7ec2d6ca96af2419ce76502a775e453c
BLAKE2b-256 0096879898459182b7b29753ff031eb8311a2528c0aa31c2586a2a20be5dc4bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Omniquestor-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4074884eea39615b5f5c9c347ba062116ae9787debf2cc14c90f5dba225202d6
MD5 11b8706a25dca298db3c79b5aba265e9
BLAKE2b-256 ce9c3af383715101f4df94466dc4dea060fc46ffb05cfb4225f06aaef25f957c

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