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

Uploaded Source

Built Distribution

vws_python_mock-2024.2.16-py2.py3-none-any.whl (63.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: vws-python-mock-2024.2.16.tar.gz
  • Upload date:
  • Size: 125.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for vws-python-mock-2024.2.16.tar.gz
Algorithm Hash digest
SHA256 278e3a479ec047b5a374005dd08c8c191ddfa5865a1b8f85440ee6a7b942a016
MD5 9ffcd2eb6724ac28d657512739fbc424
BLAKE2b-256 3e38d26650e82a3f8396da6b5dfa52e8cbef6222ed8fd538071b219a612fbd72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vws_python_mock-2024.2.16-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29ad2d617b76f065e428c201374cbdff08a7c3a42a4eb42c9611d19b84617e98
MD5 45fbf259174cb74d5644777b2a582359
BLAKE2b-256 5ee286230402e521430e00385416baf6d976385189f4c914470482e5c1bc0651

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