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.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.
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-2023.5.21.tar.gz
.
File metadata
- Download URL: vws-python-mock-2023.5.21.tar.gz
- Upload date:
- Size: 118.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 430db6b58789a80c2f4f2752a317f7d3b20bfe17bce176ee01b9c2b3896406ab |
|
MD5 | 112f6edc9d7bc5d6a03b5b81472c4c47 |
|
BLAKE2b-256 | c0e5a635e39195456f49e2737345fef8ccae1c5576dd7449abfe97b4a94b3c4b |
File details
Details for the file vws_python_mock-2023.5.21-py2.py3-none-any.whl
.
File metadata
- Download URL: vws_python_mock-2023.5.21-py2.py3-none-any.whl
- Upload date:
- Size: 63.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9874713ed6fe69ba432e22ff29f3898977914d75de66c8379180cbb541c0f509 |
|
MD5 | 5a1fc927e4977c11e2be05b945737b02 |
|
BLAKE2b-256 | 59696d1cb9881f4af1ece9a94ec73111450542df17bbf4c72f20998edbafd116 |