Skip to main content

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

Project description

Build Status codecov Updates 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.8+.

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

Uploaded Source

Built Distribution

VWS_Auth_Tools-2019.12.27.1-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: VWS Auth Tools-2019.12.27.1.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for VWS Auth Tools-2019.12.27.1.tar.gz
Algorithm Hash digest
SHA256 ccb109762969fed5902a0084ee7ecbea4c464e66ea384def1171ce3c2f3bccad
MD5 f26f3956d5433b44fc80925cb2342bcb
BLAKE2b-256 a7f93b8c2e9793c13f7803258061e0ea6d6325974e039ad9f1cc5bdccfb2689c

See more details on using hashes here.

File details

Details for the file VWS_Auth_Tools-2019.12.27.1-py2.py3-none-any.whl.

File metadata

  • Download URL: VWS_Auth_Tools-2019.12.27.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for VWS_Auth_Tools-2019.12.27.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b5728147876f6f64c6cd6f4f2dfaf17c5cf21215d6c250d4378d2463e79878a4
MD5 0f81db405711e70b90b5f1c591c0316b
BLAKE2b-256 4ebeeea1c4bf38251fd3e99f79b59d12bd42022fd0335aee802ad7869e8e95c1

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