Metadata-Version: 2.0
Name: archer
Version: 0.1
Summary: Thrift app the flask way
Home-page: http://github.com/eleme/archer/
Author: Wang Haowei
Author-email: hwwangwang@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: click (>=3.3)
Requires-Dist: thriftpy (>=0.1.15)

Archer
------

.. image:: http://img.shields.io/travis/eleme/archer/master.svg?style=flat
   :target: https://travis-ci.org/eleme/archer


Archer is a micro RPC framework inspired by `Flask` based on `Thrift`.

Archer is super easy to use
```````````````````````````

Save in a hello.py:

.. code:: python

   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 <https://thriftpy.readthedocs.org/en/latest/>`_
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:

.. code:: bash

   $ 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

.. code:: bash

   $ archer call ping

   * pong

Pretty cool, eh!

Links
`````

* `documentation <http://archer-thrift.readthedocs.org/en/latest/index.html>`_


