Skip to main content

A mock for the Vuforia Web Services (VWS) API.

Project description

Build Status codecov PyPI Documentation Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

VWS Python Mock-2021.12.26.6.tar.gz (113.3 kB view details)

Uploaded Source

Built Distribution

VWS_Python_Mock-2021.12.26.6-py3-none-any.whl (58.2 kB view details)

Uploaded Python 3

File details

Details for the file VWS Python Mock-2021.12.26.6.tar.gz.

File metadata

  • Download URL: VWS Python Mock-2021.12.26.6.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

Hashes for VWS Python Mock-2021.12.26.6.tar.gz
Algorithm Hash digest
SHA256 8e589e100a3979936aa34c2c4722462b8bf977b94bc22899c9fe3240a9d3e2e6
MD5 f565a3f22b81396de181a6c23a2fb3a8
BLAKE2b-256 652fde5b74a6600c5d24462aafa223777b3a3daa7f3fb6f6c23f41cf6b46472c

See more details on using hashes here.

File details

Details for the file VWS_Python_Mock-2021.12.26.6-py3-none-any.whl.

File metadata

  • Download URL: VWS_Python_Mock-2021.12.26.6-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

Hashes for VWS_Python_Mock-2021.12.26.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a4aa5873ab8f0c3b068e8ccf0ba605b04995cbe0105c187094a5331f15c98fad
MD5 026454db0bf1a7501ec2f83acf7dcca1
BLAKE2b-256 dbb5b67957b7988baa43195b479e7b337a99286e93e4a5ae9cf8918bb2de8a1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page