descriptionA mock server for testing Matrix Client-Server SDKs.
homepage URLhttps://github.com/SShrike/bluepill
repository URLhttps://github.com/SShrike/bluepill.git
ownerseveren@shrike.me
last changeFri, 16 Sep 2016 08:14:45 +0000 (16 20:14 +1200)
last refreshThu, 7 Feb 2019 10:47:00 +0000 (7 11:47 +0100)
content tags
add:
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.
shortlog
2016-09-16 Severen RedwoodFix PyPI badgemaster
2016-08-03 Severen RedwoodUpdate the supported versions list
2016-07-28 Severen RedwoodMiscellaneous code cleanup
2016-07-24 Severen RedwoodMerge pull request #14 from SShrike/registration
2016-07-24 Severen RedwoodImprove the regex
2016-07-24 Severen RedwoodRemove completed TODO
2016-07-22 Severen RedwoodAdd a test for random username generation
2016-07-22 Severen RedwoodAdd a test for registering a user that already exists
2016-07-21 Severen RedwoodFix Python 2/3 compatibility issues
2016-07-21 Severen RedwoodWrite tests for the register endpoint
2016-07-21 Severen RedwoodImprove validation of the request body
2016-07-21 Severen RedwoodGenerate a random username if one is not given
2016-07-21 Severen RedwoodAdd a test for gen_token()
2016-07-21 Severen RedwoodRefactor to make code more accessable for testing
2016-07-21 Severen RedwoodImprove request argument and body validation
2016-07-20 Severen RedwoodImplement the /r0/register endpoint and resource
...
heads
7 years ago master
7 years ago HS-Develop