A mock for the Vuforia Web Services (VWS) API.
Project description
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.9+.
pip install vws-python-mock
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.
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.
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-2021.12.26.5.tar.gz
.
File metadata
- Download URL: VWS Python Mock-2021.12.26.5.tar.gz
- Upload date:
- Size: 113.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d280f2d3fddecf12d8e6269bc49d5154457b3dd4f33a595ab647e7f1b3a4c57a |
|
MD5 | 2442512b69cda1767ae47b7233204892 |
|
BLAKE2b-256 | bde58410bdace3db4d9908d3a7102a358ab8d20cbc55750ae4cd978d6e2a2992 |
File details
Details for the file VWS_Python_Mock-2021.12.26.5-py3-none-any.whl
.
File metadata
- Download URL: VWS_Python_Mock-2021.12.26.5-py3-none-any.whl
- Upload date:
- Size: 58.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9711ee280b2a6cb93a2d5416dcd9f3395a6b04cad5b0f9ae1ca3573d74c80694 |
|
MD5 | 4cdad1523e11ab0ce119620a04e68c82 |
|
BLAKE2b-256 | 1736dd614a2250691ec2c5df100659097b55a589daad7e1693200d41427e4643 |