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.8.1

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.8.1
File Size Uploaded
vws_python_mock-2026.9.8.1.tar.gz 407.3 kB Details

Built distribution (wheel)

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

Total release size: 531.3 kB

Release files / vws_python_mock-2026.9.8.1.tar.gz

Download URL vws_python_mock-2026.9.8.1.tar.gz
Size 407.3 kB
Tags Source
SHA-256 checksum
How to use checksums
54aeb1ed0819e8cd9afb11daa59bcead194d6b516a886383b36aff5d790e9f91
BLAKE2b-256 checksum
How to use checksums
09c88898c2db1bdc35c619827c99c86be76a45256e48de6461ca92803b3414c7
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 8, 2026.

Transparency log

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

Download URL vws_python_mock-2026.9.8.1-py3-none-any.whl
Size 124.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51a3e67bc6b68df801859f9d82431b2448e680a40a163468198292426ddf3021
BLAKE2b-256 checksum
How to use checksums
400ffb2e521b8c5ce7b48ed768007be8410c5cc7f5dfb3e98fff3d86b3d6e331
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 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.9.8.1 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