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.1.tar.gz
(30.0 kB
view hashes)
Built Distribution
hoist_http-1.0.1-py3-none-any.whl
(35.1 kB
view hashes)
Close
Hashes for hoist_http-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeb30bf77caff3f46a41f258588b66025a06c2bf523417da7fa52a56646a9437 |
|
MD5 | 677759a8bf6f72f7ba6e8153041c0e20 |
|
BLAKE2b-256 | ef66fafb080525126b127d42e2534e409883a838c640475345ed22841fafbeb6 |