archer-0.5
توضیحات
Thrift app the flask way
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | archer-0.5 |
| نام | archer |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Wang Haowei |
| ایمیل نویسنده | hwwangwang@gmail.com |
| آدرس صفحه اصلی | http://github.com/eleme/archer/ |
| آدرس اینترنتی | https://pypi.org/project/archer/ |
| مجوز | MIT |
Archer
------
.. image:: http://img.shields.io/travis/eleme/archer/master.svg?style=flat
:target: https://travis-ci.org/eleme/archer
Archer is a micro RPC framework inspired by `Flask` based on `Thrift`.
Archer is super easy to use
```````````````````````````
Save in a hello.py:
.. code:: python
from archer import Archer
app = Archer('PingPong')
@app.api('ping')
def ping():
return 'pong'
Save in a hello.thrift::
service PingPong {
string ping(),
}
Archer would find the thrift file for you, and relying on `Thriftpy <https://thriftpy.readthedocs.org/en/latest/>`_
to generate code on the fly.
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install Archer
$ archer run
* Running on 127.0.0.1:6000/
Archer would find the app instance to start a dev server, and reload it
when detecting changes on your python or thrift file.
Quick to get some feedback
``````````````````````````
Just run the command:
.. code:: bash
$ archer call ping
* pong
Use the client shell
````````````````````
Jump into shell with client at your hand:
.. code:: bash
$ archer client
>>> client.ping()
Pretty cool, eh!
Links
`````
* `documentation <http://archer-thrift.readthedocs.org/en/latest/index.html>`_
نحوه نصب
نصب پکیج whl archer-0.5:
pip install archer-0.5.whl
نصب پکیج tar.gz archer-0.5:
pip install archer-0.5.tar.gz