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('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!

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

Uploaded Source

Built Distribution

archer-0.4-py2-none-any.whl (15.0 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for archer-0.4.tar.gz
Algorithm Hash digest
SHA256 5eb7a8b9ad2a584a65b405db77469dfcb4ca67cfc17c66c11680913de6c68187
MD5 3656c725a9f19e0746ca4a7ccfe07717
BLAKE2b-256 56f4f8e203c1cb0e03cc03d972cc4c36b8c2245bb3046d5b8f83cad0b85084bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for archer-0.4-py2-none-any.whl
Algorithm Hash digest
SHA256 667f27e7b8c551b8f100147bf82167843fafadac42a0f0bf48610b97d8df37ff
MD5 763918386c50e181cfa008ba2bf7c1f8
BLAKE2b-256 8e2769111fc0ab8022185ab12631af6d7a223b0b8df6151755dd68de7abbc4e5

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