Metadata-Version: 2.0
Name: httpsrv
Version: 0.1.6
Summary: Simple http server for API mocking during automated testing
Home-page: https://github.com/nyrkovalex/httpsrv
Author: Alexander Nyrkov
Author-email: nyrkovalex@gmail.com
License: MIT
Keywords: api http mock testing
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Provides-Extra: test
Requires-Dist: requests; extra == 'test'

Httpsrv
=======

Simple http server for API mocking during automated testing


Example usage
-------------

Using requests_ library::

    >>> import requests
    >>> from httpsrv import Server
    >>> server = Server(8080).start()
    >>> server.on('GET', '/').text('hello')
    >>> res = requests.get('http://localhost:8080')
    >>> assert res.text == 'hello'


Installation
------------

::

    pip install httpsrv


.. _requests: http://docs.python-requests.org/en/master/


Documentation
-------------

http://httpsrv.readthedocs.org


