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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d290effffea61dd3bc8de708b4e1d3c7427c196e86cc30e05fc4ceeaa6aa798
|
|
| MD5 |
9a3f998d5c9564e94fc9575d80eed0b8
|
|
| BLAKE2b-256 |
9022d3e2e6fec7ed9c3d623ebb5fcb49373f76c4cc96c9db3bd80644dcd2288d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c604de59ad2c226ac47ce17509d6ed12b922f11ac206d104a6de4a5b7399272
|
|
| MD5 |
14af8a34916464e8ba116b6745ae55bf
|
|
| BLAKE2b-256 |
f6d71086f8e041c5f57071fb145ec940d4edf7cee44407ffbb6f8b84319716c1
|