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.12+.

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


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-2024.1.21.tar.gz (123.8 kB view details)

Uploaded Source

Built Distribution

vws_python_mock-2024.1.21-py2.py3-none-any.whl (63.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file vws-python-mock-2024.1.21.tar.gz.

File metadata

  • Download URL: vws-python-mock-2024.1.21.tar.gz
  • Upload date:
  • Size: 123.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for vws-python-mock-2024.1.21.tar.gz
Algorithm Hash digest
SHA256 8f6c4094ad702a62227aa5605ec3a7677dbef7e5f4433b59e6f0f58af042b97a
MD5 54298d4161ea870664e168376268afb6
BLAKE2b-256 49bb0d520b96817c4683506e3e9cae9344fda4797475a693f9775a22423390ec

See more details on using hashes here.

File details

Details for the file vws_python_mock-2024.1.21-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vws_python_mock-2024.1.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 381b09bc6a7ff6ebc915a31eb6c1b83d7c1310723d4362ffa2276e93b2e4eca3
MD5 2a542a1b9c175d6b437a9543624c9e32
BLAKE2b-256 90d46ca4992f028ef64a78627393e8279dde7e2b909be057e6b147aa233eb662

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