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 details)
Built Distribution
File details
Details for the file vws_auth_tools-2024.7.12.tar.gz
.
File metadata
- Download URL: vws_auth_tools-2024.7.12.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3949606f2366053ea97883992f8ecaf95030ea33f1b3cf769f99f9d43c0914b |
|
MD5 | 7fd2d1f0fea9d0b60a8f048c67ae8751 |
|
BLAKE2b-256 | a917421ff3a46cee7d952e3da3126160fb75ab7cb54e3fbbfa718a7ee9e120d4 |
File details
Details for the file vws_auth_tools-2024.7.12-py2.py3-none-any.whl
.
File metadata
- Download URL: vws_auth_tools-2024.7.12-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673bb0be98e2112a008f3146ab24a0276dc26de8c43cb40546d9a54821cb9e48 |
|
MD5 | 4be9dab4c9e9f3811651e582bbf5efa4 |
|
BLAKE2b-256 | ff34d6c791bffdc3cb2e920468d255d0fa23366cb8415c1ba3db26127cc1c789 |