Skip to content

Commit 66787cd

Browse files
committed
cleanups
1 parent 700f26a commit 66787cd

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

docs/index.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
ws4py - A WebSocket package for Python
22
======================================
33

4-
Release v\ |version|.
4+
:Author: `Sylvain Hellegouarch <http://www.defuze.org>`_
5+
:Release: |version|
6+
:License: `BSD <https://github.com/Lawouach/WebSocket-for-Python/blob/master/LICENSE>`_
7+
:Source code: https://github.com/Lawouach/WebSocket-for-Python
58

6-
ws4py is a Python package implementing the WebSocket protocol as defined in `RFC 6455 <http://tools.ietf.org/html/rfc6455>`_.
79

8-
It provides client and server implementations alike that using different techniques like threads, micro-threads or event loops.
10+
ws4py is a Python package implementing the WebSocket protocol as defined in `RFC 6455 <http://tools.ietf.org/html/rfc6455>`_.
911

10-
ws4py is released under a `BSD <https://github.com/Lawouach/WebSocket-for-Python/blob/master/LICENSE>`_ license.
12+
It comes with various server and client implementations and runs
13+
on CPython 2/3, PyPy and Android.
1114

1215
Overview
1316
========

docs/sources/install.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ Get the code
66

77
ws4py is hosted on `github <https://github.com/Lawouach/WebSocket-for-Python>`_ and can be retrieved from there:
88

9-
.. code-block:: guess
9+
.. code-block:: console
1010
1111
$ git clone git@github.com:Lawouach/WebSocket-for-Python.git
1212
1313
1414
Installing the ws4py package is performed as usual:
1515

16-
.. code-block:: guess
16+
.. code-block:: console
1717
1818
$ python setup.py install
1919
2020
However, since ws4py is referenced in `PyPI <http://pypi.python.org/pypi/ws4py>`_, it can also be installed through easy_install, distribute or pip:
2121

22-
.. code-block:: guess
22+
.. code-block:: console
2323
2424
$ pip install ws4py
2525
$ easy_install ws4py

docs/sources/maintainer/design.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ Implementation
4545

4646
ws4py data model is rather simple and follows the protocol itself:
4747

48-
a highlevel WebSocket class that determines actions to carry based on messages that are parsed.
49-
a Stream class that handles a single message at a time
50-
a Frame class that performs the low level protocol parsing of frames
48+
- a highlevel :class:`ws4py.websocket.WebSocket` class that determines actions to carry based on messages that are parsed.
49+
- a :class:`ws4py.streaming.Stream` class that handles a single message at a time
50+
- a :class:`ws4py.framing.Frame` class that performs the low level protocol parsing of frames
51+
5152
Each are inter-connected as russian dolls generators. The process heavily relies on the capacity to send to a generator. So everytime one of those layers requires something, it yields and then its holder sends it back whatever was required.
5253

5354
The Frame parser yields the number of bytes it needs at any time, the stream parser forwards it back to the WebSocket class which gets data from the underlying data provider it holds a reference to (a socket typically). The WebSocket class sends bytes as they are read from the socket down to the stream parser which forwards them to the frame parser.

0 commit comments

Comments
 (0)