A mock for the Vuforia Web Services (VWS) API.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for VWS Python Mock-2020.10.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39222949987e339c2490af135bb8539735dea8c1e63457a1475e459f4952a9d9 |
|
MD5 | 3431a506acc9895cda9e1d632f05cd91 |
|
BLAKE2b-256 | 5c08a16a81237c8fbe806ed111627ab0197f95cb2152ea5b970466fe81e13af5 |
Hashes for VWS_Python_Mock-2020.10.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e742f4961484b3fa545f8295d5a5ab959cb89abce92f12b4db0959dda0918b73 |
|
MD5 | 7b4a2a25e9294baa1e9ffc8bd9c6f1d8 |
|
BLAKE2b-256 | 0f9cba28e32b14cc8065424212775c4169fb1e0555e148846e016553f3f88cdb |