Fix PyPI badge
[bluepill.git] / README.rst
blobd2bac4a1950ff006f593019aa0f146dcc6125c43
1 BluePill
2 ========
4 .. image:: https://img.shields.io/pypi/v/bluepill.svg?maxAge=2592000
5    :target: https://pypi.python.org/pypi/bluepill
7 .. image:: https://img.shields.io/travis/SShrike/bluepill.svg?maxAge=2592000
8    :target: https://travis-ci.org/SShrike/bluepill
10 .. image:: https://img.shields.io/codecov/c/github/SShrike/bluepill.svg?maxAge=2592000
11    :target: https://codecov.io/gh/SShrike/bluepill
13 BluePill is a mock server intended for testing `Matrix <https://matrix.org>`__
14 Client-Server SDKs.
16 Python 2.7+ and 3.4+ are supported.
18 Installation
19 ------------
21 Via PyPI:
23 .. code:: bash
25   pip install bluepill
27 From source:
29 .. code:: bash
31   git clone https://github.com/SShrike/bluepill.git
32   cd bluepill
33   pip install .
35 Usage
36 -----
38 Either run the executable from the command line or use the Python API:
40 .. code:: python
42   from bluepill.server import BackgroundServer
44   server = BackgroundServer()
45   server.start()  # Starts the server in a background process.
46   server.stop()  # Stops the server.