Skip to main content

Build Status PyPI

VWS Mock

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

Mocking calls made to Vuforia

MockVWS intercepts requests made with requests, httpx or HTTPX2.

pip install vws-python-mock

This requires Python 3.14+.

"""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)

MockVWS also intercepts HTTPX2 requests, with no need for httpx2.alias_httpx():

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

import httpx2

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.
    _ = httpx2.get(url="https://vws.vuforia.com/summary", timeout=30)

Asynchronous httpx and HTTPX2 clients are intercepted as well.

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.

Metadata

Release files for vws-python-mock 2026.9.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vws-python-mock 2026.9.12
File Size Uploaded
vws_python_mock-2026.9.12.tar.gz 410.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vws-python-mock 2026.9.12
File Interpreter ABI Platform
vws_python_mock-2026.9.12-py3-none-any.whl Python 3 none any Details

Total release size: 535.6 kB

Release files / vws_python_mock-2026.9.12.tar.gz

Download URL vws_python_mock-2026.9.12.tar.gz
Size 410.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3a4b6b79cf3eb296f5e1b2a06f33890066f2e472e1d7b7d43738f5b5ad894588
BLAKE2b-256 checksum
How to use checksums
5263dbabcf9760a7f3e0534bdde76414106beb962ddd4403e5fcc886bd8a81af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / vws_python_mock-2026.9.12-py3-none-any.whl

Download URL vws_python_mock-2026.9.12-py3-none-any.whl
Size 125.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3f4e2ff7d8837a43c7dc7b6e48bca8453736f0bf29848b1cc6e5624655e9279
BLAKE2b-256 checksum
How to use checksums
f5a79fe3e38fb070c02200c0b86a37f426404fd5cd861112da1055f1c8de7fa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.9.12 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page