Skip to main content

Authentication and authorization tools for interacting with the Vuforia Web Services (VWS) API.

Project description

Build Status codecov PyPI Documentation Status

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


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.12.12.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distributions

VWS_Auth_Tools-2021.12.12.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

VWS_Auth_Tools-2021.12.12-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file VWS Auth Tools-2021.12.12.0.tar.gz.

File metadata

  • Download URL: VWS Auth Tools-2021.12.12.0.tar.gz
  • Upload date:
  • Size: 17.3 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

Hashes for VWS Auth Tools-2021.12.12.0.tar.gz
Algorithm Hash digest
SHA256 b8f3a31724992eb75ec51e88b20faa92c6e1273a4bf90a13ca7788b6fbaa7e9b
MD5 cee475894cc6d5e24a4ac66b8eeb424e
BLAKE2b-256 228c6e9ed792ebf81d09885e0f94dc673f6bd8cb6cff1ce0ab562eef1df89600

See more details on using hashes here.

File details

Details for the file VWS_Auth_Tools-2021.12.12.0-py3-none-any.whl.

File metadata

  • Download URL: VWS_Auth_Tools-2021.12.12.0-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

Hashes for VWS_Auth_Tools-2021.12.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2b2b145d7a8724f5e4cfec0430ce12da75a910aed37b90a17285ad4a5a8d197
MD5 5ad524ddd5be6c3b18e3949c854cf9e6
BLAKE2b-256 448f39311da8146b57dc343553bd8e3cdf1bfff0c5c387c2243a0ad545907910

See more details on using hashes here.

File details

Details for the file VWS_Auth_Tools-2021.12.12-py3-none-any.whl.

File metadata

  • Download URL: VWS_Auth_Tools-2021.12.12-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

Hashes for VWS_Auth_Tools-2021.12.12-py3-none-any.whl
Algorithm Hash digest
SHA256 44c9a16128cc41f126304844f9709c3a334188c81f015ef011489bb22fb5d011
MD5 21979778bdfedbc4fd7ab3eeaa97c4f1
BLAKE2b-256 9728c338962c83eb027221ea7660ff6a31d19df7ebf6c852caa95bfdd7898747

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page