Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
readme and docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lxyu committed Jul 25, 2014
1 parent 591dc28 commit a3349b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
12 changes: 10 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,15 @@ python lib):
official implemention servers and clients, such as a upstream server with
a thriftpy client or the opposite.

(Currently only binary protocol & buffered transport were implemented.)
Currently implemented protocols and transports:

* binary protocol (python and cython implemention)

* buffered transport

* tornado server and client (with tornado 4.0)

* framed transport

- Can directly load thrift file as module, the sdk code will be generated on
the fly.
Expand All @@ -109,7 +117,7 @@ python lib):
import the 'pingpong.thrift' file as module.

- Pure python, standalone implemention. No longer need to compile & install
the 'thrift' package. All you need is python and thrift file.
the 'thrift' package. All you need is thrift file.

- Easy RPC server/client setup.

Expand Down
20 changes: 11 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ usage examples.
Features
========


Currently ThriftPy have these features (also advantages over the upstream
python lib):

Expand All @@ -78,7 +79,15 @@ python lib):
official implemention servers and clients, such as a upstream server with
a thriftpy client or the opposite.

(Currently only binary protocol & buffered transport were implemented.)
Currently implemented protocols and transports:

* binary protocol (python and cython implemention)

* buffered transport

* tornado server and client (with tornado 4.0)

* framed transport

- Can directly load thrift file as module, the sdk code will be generated on
the fly.
Expand All @@ -90,7 +99,7 @@ python lib):
import the 'pingpong.thrift' file as module.

- Pure python, standalone implemention. No longer need to compile & install
the 'thrift' package. All you need is python and thrift file.
the 'thrift' package. All you need is thrift file.

- Easy RPC server/client setup.

Expand All @@ -115,15 +124,8 @@ You may also install cython first to build cython extension locally.
Use Cython Binary Protocol
==========================

.. note::

The cython binary protocol is still very experimental and the code need to
be audited. Use with caution.

The TCyBinaryProtocol can be used to accelerate serialize and deserialize.

Pass TCyBinaryProtocolFactory to make_server to enable it.

.. code:: python
from thriftpy.protocol import TCyBinaryProtocolFactory
Expand Down

0 comments on commit a3349b8

Please sign in to comment.