File: README.rst

package info (click to toggle)
python-wsaccel 0.6.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: python: 370; makefile: 41; ansic: 16
file content (34 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
WSAccell
=========

.. image:: https://travis-ci.org/methane/wsaccel.svg?branch=master
    :target: https://travis-ci.org/methane/wsaccel

WSAccell is WebSocket accelerator for `AutobahnPython <http://autobahn.ws/python>`_,
and `ws4py <https://github.com/Lawouach/WebSocket-for-Python>`_.

WSAccell replaces per-byte process in them with Cython version.

AutobahnPython beginning with version 0.6 automatically uses WSAccell if available.
Otherwise you can run-time patch supported WebSocket libraries using:

.. code-block:: python

    import wsaccel
    wsaccel.patch_autobahn()  # for autobahn.
    wsaccel.patch_ws4py()     # for ws4py.

.. note::
    WSAccell also provides accelerator for Tornado.  But Tornado provides own speedup
    module for now.  So Tornado accelerator has been deprecated.


test
----

wsaccel uses `pytest <https://pytest.org/>`_ for testing.

.. code-block:: console

    $ pip install pytest
    $ py.test tests