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

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

Uploaded Source

Built Distribution

archer-0.3.macosx-10.10-x86_64.exe (116.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for archer-0.3.tar.gz
Algorithm Hash digest
SHA256 94662dfb1ca337de355a7afabac9cb82f3fa451d79326bbe230e556150c0d439
MD5 16c8f4268c63e94e6782be9a8ee4720a
BLAKE2b-256 a537169a3e6a5768a2cdb765d04de0615331338fd1566d8e697aca96a8111678

See more details on using hashes here.

File details

Details for the file archer-0.3.macosx-10.10-x86_64.exe.

File metadata

File hashes

Hashes for archer-0.3.macosx-10.10-x86_64.exe
Algorithm Hash digest
SHA256 e6d31631552111e1acb96c4b2910d5eb34a256e6bf7590573e0d1db2d111f717
MD5 a9fb4d9a29a22fa4e43a1e8dd9ca2952
BLAKE2b-256 cb4719457ba5e1711145839cd3e28b11d09eac146f5624eb68e655b186861702

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