Metadata-Version: 2.1
Name: VWS-Python-Mock
Version: 2019.12.17.0
Summary: A mock for the Vuforia Web Services (VWS) API.
Home-page: https://vws-python-mock.readthedocs.io
Author: Adam Dangoor
Author-email: adamdangoor@gmail.com
License: MIT License
Keywords: vuforia mock fake client
Platform: UNKNOWN
Classifier: Operating System :: POSIX
Classifier: Environment :: Web Environment
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Requires-Dist: pillow (==6.2.1)
Requires-Dist: pytz (==2019.3)
Requires-Dist: requests-mock (==1.7.0)
Requires-Dist: requests (==2.22.0)
Requires-Dist: wrapt (==1.11.2)
Requires-Dist: typing-extensions (==3.7.4.1)
Provides-Extra: dev
Requires-Dist: PyYAML (==5.2) ; extra == 'dev'
Requires-Dist: Sphinx-Substitution-Extensions (==2019.6.15.0) ; extra == 'dev'
Requires-Dist: Sphinx (==2.3.0) ; extra == 'dev'
Requires-Dist: VWS-Auth-Tools (==2019.12.8.2) ; extra == 'dev'
Requires-Dist: VWS-Test-Fixtures (==2019.12.13.1) ; extra == 'dev'
Requires-Dist: attrs (==19.3.0) ; extra == 'dev'
Requires-Dist: autoflake (==1.3.1) ; extra == 'dev'
Requires-Dist: check-manifest (==0.40) ; extra == 'dev'
Requires-Dist: codecov (==2.0.15) ; extra == 'dev'
Requires-Dist: doc8 (==0.8.0) ; extra == 'dev'
Requires-Dist: dodgy (==0.1.9) ; extra == 'dev'
Requires-Dist: dulwich (==0.19.14) ; extra == 'dev'
Requires-Dist: flake8-commas (==2.0.0) ; extra == 'dev'
Requires-Dist: flake8-quotes (==2.1.1) ; extra == 'dev'
Requires-Dist: flake8 (==3.7.9) ; extra == 'dev'
Requires-Dist: freezegun (==0.3.12) ; extra == 'dev'
Requires-Dist: isort (==4.3.21) ; extra == 'dev'
Requires-Dist: keyring (==20.0.0) ; extra == 'dev'
Requires-Dist: mypy (==0.750) ; extra == 'dev'
Requires-Dist: pip-check-reqs (==2.0.3) ; extra == 'dev'
Requires-Dist: pydocstyle (==5.0.1) ; extra == 'dev'
Requires-Dist: pyenchant (==2.0.0) ; extra == 'dev'
Requires-Dist: pygithub (==1.44.1) ; extra == 'dev'
Requires-Dist: pylint (==2.4.4) ; extra == 'dev'
Requires-Dist: pyroma (==2.6) ; extra == 'dev'
Requires-Dist: pytest-cov (==2.8.1) ; extra == 'dev'
Requires-Dist: pytest-envfiles (==0.1.0) ; extra == 'dev'
Requires-Dist: pytest (==5.3.2) ; extra == 'dev'
Requires-Dist: sphinx-autodoc-typehints (==1.10.3) ; extra == 'dev'
Requires-Dist: sphinx-paramlinks (==0.3.7) ; extra == 'dev'
Requires-Dist: sphinxcontrib-spelling (==4.3.0) ; extra == 'dev'
Requires-Dist: timeout-decorator (==0.4.1) ; extra == 'dev'
Requires-Dist: twine (==3.1.1) ; extra == 'dev'
Requires-Dist: vulture (==1.2) ; extra == 'dev'
Requires-Dist: yapf (==0.29.0) ; extra == 'dev'

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

.. code:: sh

    pip3 install vws-python-mock

This requires Python 3.8+.
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 <https://pypi.org/project/requests/>`_ to an in-memory implementation.

.. code:: python

    import requests
    from mock_vws import MockVWS, VuforiaDatabase

    with MockVWS() 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 <https://vws-python-mock.readthedocs.io/en/latest>`__.
This includes details on how to use the mock, options, and details of the differences between the mock and the real Vuforia Web Services.


.. |Build Status| image:: https://travis-ci.com/adamtheturtle/vws-python-mock.svg?branch=master
   :target: https://travis-ci.com/adamtheturtle/vws-python-mock
.. |codecov| image:: https://codecov.io/gh/adamtheturtle/vws-python-mock/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/adamtheturtle/vws-python-mock
.. |Updates| image:: https://pyup.io/repos/github/adamtheturtle/vws-python-mock/shield.svg
   :target: https://pyup.io/repos/github/adamtheturtle/vws-python-mock/
.. |PyPI| image:: https://badge.fury.io/py/VWS-Python-Mock.svg
    :target: https://badge.fury.io/py/VWS-Python-Mock
.. |Documentation Status| image:: https://readthedocs.org/projects/vws-python-mock/badge/?version=latest
   :target: https://vws-python-mock.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status


