VWS Mock
Mock for the Vuforia Web Services (VWS) API and the Vuforia Web Query API.
Mocking calls made to Vuforia with Python requests
Using the mock redirects requests to Vuforia made with requests to an in-memory implementation.
This requires Python 3.11+.
pip install vws-python-mock
import requests
from mock_vws import MockVWS
from mock_vws.database import 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.
Using Docker to mock calls to Vuforia from any language
It is possible run a Mock VWS instance using Docker containers.
This allows you to run tests against a mock VWS instance regardless of the language or tooling you are using.
See the the instructions for how to do this.
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 2023.3.26
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-2023.3.26.tar.gz | 118.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vws_python_mock-2023.3.26-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 181.6 kB
Release files / vws-python-mock-2023.3.26.tar.gz
| Download URL | vws-python-mock-2023.3.26.tar.gz |
|---|---|
| Size | 118.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e216feeebaa63c8b044218ba91807955a5a26efdbdb57227f04b8e63179d2503
|
|
BLAKE2b-256 checksum How to use checksums |
729646ccdd96c5593a99d24c39b578deef1625e65e70b4fe4c90c1bd620981b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / vws_python_mock-2023.3.26-py2.py3-none-any.whl
| Download URL | vws_python_mock-2023.3.26-py2.py3-none-any.whl |
|---|---|
| Size | 62.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4da1c3358392f902d1be44598d1b4487a6564fc67918e928dd927678cc03ee02
|
|
BLAKE2b-256 checksum How to use checksums |
d040caf32412d1a4653b852bdd4de11e0feedc86b2ed9670a6a9dc72e0874225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|