Skip to main content

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

Project description

Build Status codecov 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.8.5+. 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() as mock:
    database = VuforiaDatabase()
    mock.add_database(database=database)
    # This will use the Vuforia mock.
    requests.get('https://vws.vuforia.com/summary')

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

Uploaded Source

Built Distribution

VWS_Python_Mock-2020.9.25.0-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: VWS Python Mock-2020.9.25.0.tar.gz
  • Upload date:
  • Size: 102.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for VWS Python Mock-2020.9.25.0.tar.gz
Algorithm Hash digest
SHA256 c79ab8370da082a870001fa0d84f3c9d8be5dd271729feecc94df58a2f9f2bdd
MD5 9472333b67ee5c54fd317a44e3a790c3
BLAKE2b-256 b4437e8439dd71f6cd73ac7804842710f80bf6ce37df8f4cc6d36a5c6c63b693

See more details on using hashes here.

File details

Details for the file VWS_Python_Mock-2020.9.25.0-py3-none-any.whl.

File metadata

  • Download URL: VWS_Python_Mock-2020.9.25.0-py3-none-any.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for VWS_Python_Mock-2020.9.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 639e8415dca15101cf4910fcfdafd246f1263dfe49d1271bd7662f1afde504c6
MD5 78e1d3192314aa4880e7aea8c14fe3e6
BLAKE2b-256 c5635eadc95e520d512717bdbc6b1db286eafe14962000fd29f55d3348a3cae7

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