Skip to main content

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

Project description

Build Status codecov Updates PyPI Documentation Status

VWS Python Mock

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

Installation

pip3 install vws-python-mock

This requires Python 3.7+. Get in touch with adamdangoor@gmail.com if you would like to use this with another language.

Mocking Vuforia

Requests made to Vuforia can be mocked. Using the mock redirects requests to Vuforia made with requests to an in-memory implementation.

import requests
from mock_vws import MockVWS, VuforiaDatabase

with MockVWS(database=database) as mock:
    database = VuforiaDatabase()
    mock.add_database(database=database)
    # This will use the Vuforia mock.
    requests.get('https://vws.vuforia.com/summary')

However, by default, an exception will be raised if any requests to unmocked addresses are made.

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

Uploaded Source

Built Distribution

VWS_Python_Mock-2019.9.28.0-py2.py3-none-any.whl (39.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file VWS Python Mock-2019.9.28.0.tar.gz.

File metadata

  • Download URL: VWS Python Mock-2019.9.28.0.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for VWS Python Mock-2019.9.28.0.tar.gz
Algorithm Hash digest
SHA256 d78fb21c7afe1463da6500c2518987062e1817ec2ab0c88e9d597c7c2eb47201
MD5 20511b0eade34bfcbec8344730fd1bf6
BLAKE2b-256 303329c7c031e5e0384e3468807202006c19a1ea413d9be68aa8db1c833390f4

See more details on using hashes here.

File details

Details for the file VWS_Python_Mock-2019.9.28.0-py2.py3-none-any.whl.

File metadata

  • Download URL: VWS_Python_Mock-2019.9.28.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for VWS_Python_Mock-2019.9.28.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 35f5e2841ef2c5e02154e793f60865e0b77f19d365bc4372ee62424fced77e94
MD5 0af79234f8142350e74ab6334883eb85
BLAKE2b-256 5b01263071b8cb87d41d26568d7d4aeda7fd48064e4dfee0538b3653ec9f4af3

See more details on using hashes here.

Supported by

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