GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - VWS-Python/vws-python-mock: Mock of the Vuforia Web Services (VWS) API

This repository was archived by the owner on Oct 30, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

11,167 Commits
11,167 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
admin
admin
 
 
ci
ci
 
 
contract-tests
contract-tests
 
 
docs
docs
 
 
newsfragments
newsfragments
 
 
server
server
 
 
src/mock_vws
src/mock_vws
 
 
styles/snapper
styles/snapper
 
 
test-backends
test-backends
 
 
tests
tests
 
 
typings/pyprojroot
typings/pyprojroot
 
 
.dockerignore
.dockerignore
 
 
.git_archival.txt
.git_archival.txt
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.vale.ini
.vale.ini
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.rst
CODE_OF_CONDUCT.rst
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.rst
README.rst
 
 
conftest.py
conftest.py
 
 
prek.toml
prek.toml
 
 
pyproject.toml
pyproject.toml
 
 
secrets.tar.gpg
secrets.tar.gpg
 
 
spelling_private_dict.txt
spelling_private_dict.txt
 
 
uv.lock
uv.lock
 
 
vuforia_secrets.env.example
vuforia_secrets.env.example
 
 
zizmor.yml
zizmor.yml
 
 

Repository files navigation

Build Status PyPI

VWS Mock

Important

This project is archived because PTC is retiring the Vuforia Engine Cloud Image Recognition service on May 2, 2027. Existing customers can continue using the service until that date. After that date, Cloud Image Recognition databases and associated services will no longer be available.

  • Mocking calls made to Vuforia
  • Using containers to mock calls to Vuforia from any language
  • Full documentation

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.15+.

"""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 containers to mock calls to Vuforia from any language

You can run a Mock VWS instance using Docker or Apple's container CLI.

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.

About

Mock of the Vuforia Web Services (VWS) API

vws-python.github.io/vws-python-mock/

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.