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

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

Uploaded Source

Built Distribution

vws_python_mock-2023.3.5-py2.py3-none-any.whl (66.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for vws-python-mock-2023.3.5.tar.gz
Algorithm Hash digest
SHA256 c55ccb4a0131382c1e0a6c295de4ea2d340d6eb7148928529544b2e4c7c3900e
MD5 452d006f79e2895276e527a0659305c3
BLAKE2b-256 e419b3101a5c3ff9f2cebabf54b916122bc6c1a5caa6f9d1aa7da347e73f0d47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vws_python_mock-2023.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 438c039b12915145c9e229d3833cc430522bdaf01fc71eb4e0cbbbea951c4b98
MD5 a00f911823d3d03c2c466394235b589c
BLAKE2b-256 c01f6c0dc23f45260dd9898cfc86019132dc43babdf618301fe61f7a831120e0

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