Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Thrift app the flask way...The Right Way

Project description

http://img.shields.io/travis/eleme/archerv2/master.svg?style=flat

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!

Project details


Release history Release notifications

This version

0.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for archerv2, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size archerv2-0.6-py2-none-any.whl (15.2 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size archerv2-0.6.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page