Python mock for the Vuforia Web Services (VWS) API and the Vuforia Web Query API.
pip3 install vws-python-mockThis requires Python 3.8.5+.
Get in touch with adamdangoor@gmail.com if you would like to use this with another language.
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.
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.