Folklore: An elegant thrift service development framework
This package defines the interfaces for writing Folklore thrift services.
Install
pip install folklore
Example
To define a simple app:
# app.py
from folklore import Folklore
app = Folklore('TestService')
@app.api
def say_hello(name):
return 'Hello ' + name
To Run the app, install folklore-cli first, then create the following config:
# ping.thrift
service TestService {
string say_hello(1: required string name)
}
# app.yaml
app_name: test_app
app: app:app
thrift_file: ping.thrift
Run the following command:
$ folklore serve
Metadata
Release files for folklore 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| folklore-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / folklore-0.2.0-py2.py3-none-any.whl
| Download URL | folklore-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6194487000f5035e50c999d5ceb2acd113c1f1e954edd4151411b686b2835577
|
|
BLAKE2b-256 checksum How to use checksums |
a30f2ce24d7097dce77121613b6e3ce878b74ec1eb2df5d7f8b3261d5d5af224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.4
|