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.7.1.tar.gz
.
File metadata
- Download URL: VWS Python Mock-2019.12.7.1.tar.gz
- Upload date:
- Size: 41.2 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.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e10624fd8a88477a673a266c6606ee97f3ef83cbc156c7575a8b44168a82285 |
|
MD5 | 43cbb71d2bd6210d3dc7ca70fdc1eb88 |
|
BLAKE2b-256 | 27a41f85c257f2de87585b06a0b5b22225fcdcc88c6528e0881bbcad2a3f3305 |
File details
Details for the file VWS_Python_Mock-2019.12.7.1-py2.py3-none-any.whl
.
File metadata
- Download URL: VWS_Python_Mock-2019.12.7.1-py2.py3-none-any.whl
- Upload date:
- Size: 39.5 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.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b0edf62bda686f32b1005012236ccaa545440ccb828a7282643792678b0fd3 |
|
MD5 | a2fa23654d18d7da65a223ba45168f52 |
|
BLAKE2b-256 | a7e9b57929c0eac1518258ce2ab0e6891508e5ea80dc015dfe8522015b84737a |