Skip to content

maralla/folklore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folklore: Elegant thrift service development framework

image

This package defines the interfaces for writing Folklore thrift services.

Install

pip install folklore

Example

To define an 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

About

[WIP] Beautiful and easy to use Python RPC service framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published