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.12+.
Usage
from urllib.parse import urljoin
import requests
from vws_auth_tools import authorization_header, rfc_1123_date
request_path = '/targets'
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_header, '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, response.text
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-2024.7.12.tar.gz
(19.1 kB
view hashes)
Built Distribution
Close
Hashes for vws_auth_tools-2024.7.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673bb0be98e2112a008f3146ab24a0276dc26de8c43cb40546d9a54821cb9e48 |
|
MD5 | 4be9dab4c9e9f3811651e582bbf5efa4 |
|
BLAKE2b-256 | ff34d6c791bffdc3cb2e920468d255d0fa23366cb8415c1ba3db26127cc1c789 |