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

Uploaded Source

Built Distribution

vws_python_mock-2024.7.15-py2.py3-none-any.whl (64.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file vws_python_mock-2024.7.15.tar.gz.

File metadata

  • Download URL: vws_python_mock-2024.7.15.tar.gz
  • Upload date:
  • Size: 127.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for vws_python_mock-2024.7.15.tar.gz
Algorithm Hash digest
SHA256 881432f382dfeb1f2a517760ee7b37aa2395ad0624d994e5f506eda7d9501abd
MD5 707139916f25df07392ffab391f3d80b
BLAKE2b-256 8bb442c3c5074490802c15ab7ac4702abaa133dd88c75d55a93500fe080277d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vws_python_mock-2024.7.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c65cf21f49ed12ab8c42afe92a529c6678417c2bdd397976f509756e0c696892
MD5 fac76b0d77becc11d815431f956490ff
BLAKE2b-256 fafd7518b3092b97f208195b0379bae15df8c33c885d20eb8f0475a543cc3307

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