Skip to main content

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

Project description

Build Status codecov PyPI

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.

pip install vws-python-mock

This requires Python 3.13+.

"""Make a request to the Vuforia Web Services API 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(url="https://vws.vuforia.com/summary", timeout=30)

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

Uploaded Source

Built Distribution

vws_python_mock-2025.3.10.1-py2.py3-none-any.whl (63.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: vws_python_mock-2025.3.10.1.tar.gz
  • Upload date:
  • Size: 129.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vws_python_mock-2025.3.10.1.tar.gz
Algorithm Hash digest
SHA256 4bbf2f3f5fcb1c62bb34a569def93851d599af197a4a10471f1011077e07b5b8
MD5 5722ed8069f276f958e1313e73d88b1c
BLAKE2b-256 61d36b3c906a9470ea329f3f61685f8e1469591b1e778b1f287fb7a9c5b336c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vws_python_mock-2025.3.10.1.tar.gz:

Publisher: release.yml on VWS-Python/vws-python-mock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for vws_python_mock-2025.3.10.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a89b63eb3d2143e1c9f62f3f5a71ff1093250d6d4abe8c3a67a1ff84538f20cf
MD5 e0bb165708c9270a31b5cf83b50e37fe
BLAKE2b-256 0d02d2a8534841d383ba5d9b79f89b3ffe8c2cdc0616f1925c0cc02d111147b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vws_python_mock-2025.3.10.1-py2.py3-none-any.whl:

Publisher: release.yml on VWS-Python/vws-python-mock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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