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.11+.

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

Uploaded Source

Built Distribution

vws_auth_tools-2023.3.5-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file vws-auth-tools-2023.3.5.tar.gz.

File metadata

  • Download URL: vws-auth-tools-2023.3.5.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for vws-auth-tools-2023.3.5.tar.gz
Algorithm Hash digest
SHA256 4b29464aac88c0cce4e7e696c10cbdb5735545565c1d8ae5f2dd5db24f21e6f6
MD5 c9fb92f10561fddc1e2ef6109cf1d451
BLAKE2b-256 219eff3ab55740d31fc6fcc63e5eb96eabad48c86f84dda5504a0385325554c4

See more details on using hashes here.

File details

Details for the file vws_auth_tools-2023.3.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vws_auth_tools-2023.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d39ebf19d635dd4088115fbc44022cae821e097706d9e3b34151353e3c4ca8a1
MD5 dafc5c55058fa104697a695f1950c6fb
BLAKE2b-256 04a1b16f6edcd70b7d654aaf21ca704142e712fad8cef1f3e0fa1dc32aa2ee7f

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