Skip to main content

A mock for the Vuforia Web Services (VWS) API.

Project description

Build Status codecov Updates PyPI Documentation Status

VWS Python Mock

Python mock for the Vuforia Web Services (VWS) API and the Vuforia Web Query API.

Installation

pip3 install vws-python-mock

This requires Python 3.7+. Get in touch with adamdangoor@gmail.com if you would like to use this with another language.

Mocking Vuforia

Requests made to Vuforia can be mocked. Using the mock redirects requests to Vuforia made with requests to an in-memory implementation.

import requests
from mock_vws import MockVWS, VuforiaDatabase

with MockVWS(database=database) as mock:
    database = VuforiaDatabase()
    mock.add_database(database=database)
    # This will use the Vuforia mock.
    requests.get('https://vws.vuforia.com/summary')

However, by default, an exception will be raised if any requests to unmocked addresses are made.

Full Documentation

See the full documentation. This includes details on how to use the mock, options, and details of the differences between the mock and the real Vuforia Web Services.

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 Python Mock-2018.10.2.0.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

VWS_Python_Mock-2018.10.2.0-py2.py3-none-any.whl (34.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file VWS Python Mock-2018.10.2.0.tar.gz.

File metadata

  • Download URL: VWS Python Mock-2018.10.2.0.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for VWS Python Mock-2018.10.2.0.tar.gz
Algorithm Hash digest
SHA256 78c95ab05fe5294f5daf06a8fd34090e27006302a257d20efc31f6a0e65e9312
MD5 e0af869e3d4a36caf99aa8e0f562b785
BLAKE2b-256 544ec36f0e9d491170626844ec21f130fbb8455205d668f7010b0d72a79d09c7

See more details on using hashes here.

File details

Details for the file VWS_Python_Mock-2018.10.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: VWS_Python_Mock-2018.10.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for VWS_Python_Mock-2018.10.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 53ed9999beb24681f5d2ae310cf99ecdcad3e8a31e16dbdd954a9a1a2a9b0ccf
MD5 699e5df17329fd153545f15e572bef0f
BLAKE2b-256 f93d9d089947a48c07215babeec176ed655dcac1b7a96fe633ed1b0542864c82

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