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.3.tar.gz (3.4 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Omniquestor-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 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.3.tar.gz
Algorithm Hash digest
SHA256 9d290effffea61dd3bc8de708b4e1d3c7427c196e86cc30e05fc4ceeaa6aa798
MD5 9a3f998d5c9564e94fc9575d80eed0b8
BLAKE2b-256 9022d3e2e6fec7ed9c3d623ebb5fcb49373f76c4cc96c9db3bd80644dcd2288d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Omniquestor-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c604de59ad2c226ac47ce17509d6ed12b922f11ac206d104a6de4a5b7399272
MD5 14af8a34916464e8ba116b6745ae55bf
BLAKE2b-256 f6d71086f8e041c5f57071fb145ec940d4edf7cee44407ffbb6f8b84319716c1

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