Skip to main content

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

Project description

Build Status PyPI

VWS Mock

Mock for the Vuforia Web Services (VWS) API and the Vuforia Web Query API.

Mocking calls made to Vuforia

MockVWS intercepts requests made with requests or httpx.

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 CloudDatabase

with MockVWS() as mock:
    database = CloudDatabase()
    mock.add_cloud_database(cloud_database=database)
    # This will use the Vuforia mock.
    requests.get(url="https://vws.vuforia.com/summary", timeout=30)

MockVWS also intercepts httpx requests:

"""Make a request to the Vuforia Web Services API mock using httpx."""

import httpx

from mock_vws import MockVWS
from mock_vws.database import CloudDatabase

with MockVWS() as mock:
    database = CloudDatabase()
    mock.add_cloud_database(cloud_database=database)
    # This will use the Vuforia mock.
    httpx.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-2026.2.22.3.tar.gz (164.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vws_python_mock-2026.2.22.3-py2.py3-none-any.whl (70.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for vws_python_mock-2026.2.22.3.tar.gz
Algorithm Hash digest
SHA256 67f121556b53ef195afe2b279553e7535178a81779e4e9997f34811d1ca54682
MD5 64b6fb3493cb97e75b672bf52bb34686
BLAKE2b-256 29069aa217310f41a483981cfd71cc8fb5119621c62f0477aace29b82d7ea2bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for vws_python_mock-2026.2.22.3.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-2026.2.22.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for vws_python_mock-2026.2.22.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2480d61663c25d4dc2d2ca819e6a356700f665d6b904418119b1ab95e3b8353b
MD5 85c48d67d654ae6a1c00b33e3bef16c9
BLAKE2b-256 f1e8c990d1180bf3ae4cfe3c9129879bd9daa4fb0aa57c6513f69bd26102f1cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for vws_python_mock-2026.2.22.3-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page