Thrift app the flask 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 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 to generate code on the fly.
And Easy to Setup
And run it:
$ 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:
$ archer call ping
* pong
Use the client shell
Jump into shell with client at your hand:
$ archer client
>>> client.ping()
Pretty cool, eh!
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
archer-0.5.tar.gz
(10.9 kB
view details)
Built Distribution
archer-0.5-py2-none-any.whl
(15.1 kB
view details)
File details
Details for the file archer-0.5.tar.gz
.
File metadata
- Download URL: archer-0.5.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5b0bc783165fed31b53d75e45d5a37f696de3bd08a4bf340bcf4650f3c4b29c |
|
MD5 | 08f96ea3947a3f3a02cccfe19c873252 |
|
BLAKE2b-256 | 409dfb090d9caab579ec7dfb8ea6d2513f3c23c2f629fa13558b419652e7cc74 |
File details
Details for the file archer-0.5-py2-none-any.whl
.
File metadata
- Download URL: archer-0.5-py2-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de2badcbb57e09e0fb4d2b675da3faf63525d4c262c54c29e545bb9a9fef341 |
|
MD5 | 9f246ef61291a0dd2754eff0ddf7979f |
|
BLAKE2b-256 | 50c3b728a7ced1b0328bc2836a86b9885e7afeee3f20d277000aa68bcf504310 |