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+. 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')
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
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
File details
Details for the file VWS Python Mock-2019.12.17.0.tar.gz
.
File metadata
- Download URL: VWS Python Mock-2019.12.17.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0decb2250f7971df43e85570f6a1c0930e3754a6aaa28fc35e1b7c57cbf7105a |
|
MD5 | 095be04831e70fd127b788e0fb99a4e7 |
|
BLAKE2b-256 | face0acb6092bc3a5c1cba0501d86092e9cf5d0d9ea004f39f889c7d9de710c5 |
File details
Details for the file VWS_Python_Mock-2019.12.17.0-py2.py3-none-any.whl
.
File metadata
- Download URL: VWS_Python_Mock-2019.12.17.0-py2.py3-none-any.whl
- Upload date:
- Size: 39.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e0b6501202b6080096b6d74164f4eb6f4412c7a525f8a97a8d774c1da6fbd58 |
|
MD5 | f6dea887cf5f8074076b73dd3d0cba3c |
|
BLAKE2b-256 | f3ce2243eded553c587262d74f64b7798db8a698839ab811ec0d7227d78ca22d |