An elegant thrift service development framework
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file folklore-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: folklore-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6194487000f5035e50c999d5ceb2acd113c1f1e954edd4151411b686b2835577 |
|
MD5 | 29011c62bdd07b4271792db89556581f |
|
BLAKE2b-256 | a30f2ce24d7097dce77121613b6e3ce878b74ec1eb2df5d7f8b3261d5d5af224 |