micro grpc framework like flask
Project description
homi
micro grpc framework like flask
Feature
- config less to run server
- use decorator pattern to connect service method
- auto parse request data to dict, you don't use grpc request object
- auto set argument what you want
- you just return dict type, not grpc object
check example
import homi
import helloworld_pb2
import helloworld_pb2_grpc
@homi.register(helloworld_pb2_grpc, 'Greeter')
def SayHello(name, **kwargs):
print(f"{name} is request SayHello")
return helloworld_pb2.HelloReply(message=f"Hello {name}!")
Change Logs
- 0.0.1 (init project)
- run server using cli
- helloworld example
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 Distribution
homi-0.0.2.tar.gz
(4.1 kB
view hashes)
Built Distributions
homi-0.0.2-py3.8.egg
(12.1 kB
view hashes)
homi-0.0.2-py3-none-any.whl
(8.9 kB
view hashes)