archerv2-0.6
توضیحات
Thrift app the flask way...The Right Way
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | archerv2-0.6 |
| نام | archerv2 |
| نسخه کتابخانه | 0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Starner |
| ایمیل نویسنده | starner.daniel5@gmail.com |
| آدرس صفحه اصلی | https://github.com/dstarner15/archerv2 |
| آدرس اینترنتی | https://pypi.org/project/archerv2/ |
| مجوز | MIT |
Archer
------
.. image:: http://img.shields.io/travis/eleme/archerv2/master.svg?style=flat
:target: https://travis-ci.org/eleme/archerv2
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 archerv2 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
$ archerv2 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
$ archerv2 call ping
* pong
Use the client shell
````````````````````
Jump into shell with client at your hand:
.. code:: bash
$ archerv2 client
>>> client.ping()
Pretty cool, eh!
Links
`````
* `documentation <http://archerv2-thrift.readthedocs.org/en/latest/index.html>`_
نیازمندی
| مقدار | نام |
|---|---|
| >=3.3 | click |
| >=0.3.9 | thriftpy |
نحوه نصب
نصب پکیج whl archerv2-0.6:
pip install archerv2-0.6.whl
نصب پکیج tar.gz archerv2-0.6:
pip install archerv2-0.6.tar.gz