Authentication and authorization tools for interacting with the Vuforia Web Services (VWS) API.
Project description
VWS Auth Tools
Authentication and authorization tools for interacting with the Vuforia Web Services (VWS) API.
Installation
pip install vws-auth-tools
This is tested on Python 3.10+.
Usage
import requests
from vws_auth_tools import authorization_header, rfc_1123_date
target_id = '...'
request_path = f'/duplicates/{target_id}'
content = b''
method = 'GET'
date = rfc_1123_date()
authorization_header = authorization_header(
access_key='my_access_key',
secret_key='my_secret_key',
method=method,
content=content,
content_type='',
date=date,
request_path=request_path,
)
headers = {'Authorization': authorization_string, 'Date': date}
response = requests.request(
method=method,
url=urljoin(base='https://vws.vuforia.com', url=request_path),
headers=headers,
data=content,
)
assert response.status_code == 200
Full Documentation
See the full documentation.
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
VWS Auth Tools-2021.11.5.0.tar.gz
(17.2 kB
view hashes)
Built Distribution
Close
Hashes for VWS Auth Tools-2021.11.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 977a32e1a0c95c9a37dd8692f189e8bc7d7cb8243c911f7ccd5ebbb695b2d2b3 |
|
MD5 | 3dc68c9928fe23611a4dfc54c3d8fa59 |
|
BLAKE2b-256 | 1a4d1a56f00744e86019c57ece4b662d29841854f1cd75a2da0fb14e59fc0a4a |
Close
Hashes for VWS_Auth_Tools-2021.11.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2f8559d7c3710675545a950d04233767ba2fe3e4210a2625fcb88da2b4ada09 |
|
MD5 | 8c7bfae2aac9700e16cb5d3104d341c6 |
|
BLAKE2b-256 | 02b928b40ad478e9b5cd00930ca3af8b5f11f95a0a0120d83d1b15b945df09a5 |