Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from Thriftpy/archer

Make a thrift app flaskable, easier to use, debug and test

License

Notifications You must be signed in to change notification settings

kimizhang/archer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archer

http://img.shields.io/travis/eleme/archer/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 archer import Archer
app = Archer(__name__)

@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 you don't need to specify the service name(here is PingPong) in code as well.

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

About

Make a thrift app flaskable, easier to use, debug and test

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 76.4%
  • Shell 11.5%
  • Makefile 11.2%
  • Thrift 0.9%