Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Mar 16, 2019
1 parent ec0587c commit f901bf1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Thrift app and worker for gunicorn! Hence, a multi-process python thrift server!
## Supported Platforms

* Python 2.7, all worker classes
* Python 3.2+, `thriftpy_sync` and `thriftpy_gevent` worker classes (code generated
* Python 3.4+, `thriftpy_sync` and `thriftpy_gevent` worker classes (code generated
using the Thrift toolkit is not supported on Python 3)

## Examples
Expand Down Expand Up @@ -51,7 +51,7 @@ Thrift app and worker for gunicorn! Hence, a multi-process python thrift server!
% gunicorn_thrift tests.app:app -k thrift_gevent
```
### Using `thriftpy`
### Using `thriftpy2`
1. Write thrift app.
Expand Down Expand Up @@ -88,7 +88,7 @@ Thrift app and worker for gunicorn! Hence, a multi-process python thrift server!
Parameter: `-k`, `--worker-class`
Config file: `worker_class`
Default 2.7: `thrift_sync`
Default 3.2+: `thriftpy_sync`
Default 3.4+: `thriftpy_sync`
There are 4 types of workers available.
Expand All @@ -115,7 +115,7 @@ The transport factory to use for handling connections.
Parameter: `--thrift-transport-factory`
Config file: `thrift_transport_factory`
Default 2.7: `thrift.transport.TTransport:TBufferedTransportFactory`
Default 3.2+: `thriftpy2.transport:TBufferedTransportFactory`
Default 3.4+: `thriftpy2.transport:TBufferedTransportFactory`
### Protocol factory
Expand All @@ -125,7 +125,7 @@ The protocol factory to use for parsing requests.
Parameter: `--thrift-protocol-factory`
Config file: `thrift_protocol_factory`
Default 2.7: `thrift.protocol.TBinaryProtocol:TBinaryProtocolAcceleratedFactory`
Default 3.2+: `thriftpy2.protocol:TBinaryProtocolFactory`
Default 3.4+: `thriftpy2.protocol:TBinaryProtocolFactory`
### Client timeout
Expand Down

0 comments on commit f901bf1

Please sign in to comment.