Thrift app the flask way...The Right Way
Project description
Archer is a micro RPC framework inspired by Flask based on Thrift.
Archer is super easy to use
Save in a hello.py:
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 to generate code on the fly.
And Easy to Setup
And run it:
$ 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:
$ archerv2 call ping
* pong
Use the client shell
Jump into shell with client at your hand:
$ archerv2 client
>>> client.ping()
Pretty cool, eh!
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
archerv2-0.6.tar.gz
(10.8 kB
view details)
Built Distribution
archerv2-0.6-py2-none-any.whl
(15.2 kB
view details)
File details
Details for the file archerv2-0.6.tar.gz
.
File metadata
- Download URL: archerv2-0.6.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60c94bad72e1505a1657786e417150326f00ec5420a43688f3369767925efe52 |
|
MD5 | ee3472b3114d43fd93ca7f09d356507d |
|
BLAKE2b-256 | 2e2c24d99a672f3631bc9f84e591e88d56f6d324a1135e704fd0df6128aeb4d5 |
File details
Details for the file archerv2-0.6-py2-none-any.whl
.
File metadata
- Download URL: archerv2-0.6-py2-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e2c0aceabf8f91a27770cb811401221797f1ee965cc4c919e49578f3211a302 |
|
MD5 | 51ad88dcc2454e08b2000b9a93a29315 |
|
BLAKE2b-256 | b1f1ce616f796feb6720d5a675bcc37ecc06b5e6b4d77a11b0d826d0d8fdc15c |