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.
Metadata
Release files for vws-python-mock 2019.12.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| VWS Python Mock-2019.12.17.0.tar.gz | 41.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| VWS_Python_Mock-2019.12.17.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 80.9 kB
Release files / VWS Python Mock-2019.12.17.0.tar.gz
| Download URL | VWS Python Mock-2019.12.17.0.tar.gz |
|---|---|
| Size | 41.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0decb2250f7971df43e85570f6a1c0930e3754a6aaa28fc35e1b7c57cbf7105a
|
|
BLAKE2b-256 checksum How to use checksums |
face0acb6092bc3a5c1cba0501d86092e9cf5d0d9ea004f39f889c7d9de710c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / VWS_Python_Mock-2019.12.17.0-py2.py3-none-any.whl
| Download URL | VWS_Python_Mock-2019.12.17.0-py2.py3-none-any.whl |
|---|---|
| Size | 39.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8e0b6501202b6080096b6d74164f4eb6f4412c7a525f8a97a8d774c1da6fbd58
|
|
BLAKE2b-256 checksum How to use checksums |
f3ce2243eded553c587262d74f64b7798db8a698839ab811ec0d7227d78ca22d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|