Skip to main content

Thrift app the flask way

Project description

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

Pretty cool, eh!

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.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

archer-0.1-py2-none-any.whl (16.2 kB view details)

Uploaded Python 2

File details

Details for the file archer-0.1.tar.gz.

File metadata

  • Download URL: archer-0.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for archer-0.1.tar.gz
Algorithm Hash digest
SHA256 7c0f448241e8430eaefad4108a5654bbc3180941455b21e91245c17ce084856a
MD5 181f80b718cd50e634c8c4c2abc68af4
BLAKE2b-256 1f2a8d469cc55c4f31aded261e00671266f3d6a433c128b287b19519aae9bef7

See more details on using hashes here.

File details

Details for the file archer-0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for archer-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 979b51984350a17cc81ab87ef0110fa79bdf2109db18e4a448a70c5a91572410
MD5 19a081d6ff4642e6238be6e0e0be2e34
BLAKE2b-256 55aca7dcfc59f3f6e94ef7732f9bec1563e5e0049c424328fcf7f5f0302b43ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page