description | A mock server for testing Matrix Client-Server SDKs. |
homepage URL | https://github.com/SShrike/bluepill |
repository URL | https://github.com/SShrike/bluepill.git |
owner | severen@shrike.me |
last change | Fri, 16 Sep 2016 08:14:45 +0000 (16 20:14 +1200) |
last refresh | Thu, 7 Feb 2019 10:47:00 +0000 (7 11:47 +0100) |
mirror URL | git://repo.or.cz/bluepill.git |
| https://repo.or.cz/bluepill.git |
| ssh://git@repo.or.cz/bluepill.git |
bundle info | bluepill.git downloadable bundles |
content tags
|
|
README.rst
BluePill
========
.. image:: https://img.shields.io/pypi/v/bluepill.svg?maxAge=2592000
:target: https://pypi.python.org/pypi/bluepill
.. image:: https://img.shields.io/travis/SShrike/bluepill.svg?maxAge=2592000
:target: https://travis-ci.org/SShrike/bluepill
.. image:: https://img.shields.io/codecov/c/github/SShrike/bluepill.svg?maxAge=2592000
:target: https://codecov.io/gh/SShrike/bluepill
BluePill is a mock server intended for testing `Matrix <https://matrix.org>`__
Client-Server SDKs.
Python 2.7+ and 3.4+ are supported.
Installation
------------
Via PyPI:
.. code:: bash
pip install bluepill
From source:
.. code:: bash
git clone https://github.com/SShrike/bluepill.git
cd bluepill
pip install .
Usage
-----
Either run the executable from the command line or use the Python API:
.. code:: python
from bluepill.server import BackgroundServer
server = BackgroundServer()
server.start() # Starts the server in a background process.
server.stop() # Stops the server.