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-2019.9.28.0.tar.gz (40.7 kB view hashes)

Uploaded Source

Built Distribution

VWS_Python_Mock-2019.9.28.0-py2.py3-none-any.whl (39.1 kB view hashes)

Uploaded Python 2 Python 3

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