Easy client-server communication
Project description
Hoist
Developer-oriented client-server communication
Quick Example
import hoist
server = hoist.start("test")
@server.receive("hello")
async def hello(message: hoist.Message) -> None:
print("server got hello")
await message.reply("hi")
import hoist
@hoist.connect_with("test")
async def main(server: hoist.Connection):
@server.receive("hi")
async def hello():
print("client got hi")
await server.message("hello")
Features
- Fully type safe
- Async ready
- Modern API
Installation
Linux/macOS
python3 -m pip install -U hoist-http
Windows
py -3 -m pip install -U hoist-http
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
hoist_http-1.0.0rc1.tar.gz
(29.8 kB
view hashes)
Built Distribution
Close
Hashes for hoist_http-1.0.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d83176927212afe6dcb16f2797d126c9f97b7163466529e0aa2ce0e8dd696af |
|
MD5 | 82051708e91e72d5ed2c6f9707682554 |
|
BLAKE2b-256 | 51d702f7614e0c74ab19c8a8ea657ebbebcedb16a6e42e513e893ece6dc466ff |