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
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 VWS Auth Tools-2021.12.12.7.tar.gz.
File metadata
- Download URL: VWS Auth Tools-2021.12.12.7.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9c856663ede6a0025fa6f833fbf9151c7616290406fd9412b6acbd1c5b7fa7d
|
|
| MD5 |
c786939ea0328534bf63b4fd8c1cb293
|
|
| BLAKE2b-256 |
790e74e6232de9c39f6abcd9bc893175f454da3441408f777ce2e869014fb174
|
File details
Details for the file VWS_Auth_Tools-2021.12.12.7-py3-none-any.whl.
File metadata
- Download URL: VWS_Auth_Tools-2021.12.12.7-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94643fd8fd56bc81a2051bafc2cefa36b615d914d83e508bce8532779b1a7c3
|
|
| MD5 |
ee34f44daa6836a39e215137fa069d18
|
|
| BLAKE2b-256 |
6e7550bd7505351c34a7fb262b82d2abed41482e2e9da03cf3aeb5dec553714f
|