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
Metadata
Release files for hoist-http 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hoist_http-1.0.1.tar.gz | 30.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hoist_http-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.0 kB
Release files / hoist_http-1.0.1.tar.gz
| Download URL | hoist_http-1.0.1.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb87f4f6c29c02c4df95a38cb2fe0d00fdb2a82adfbd5a737e34d2a4c6148eac
|
|
BLAKE2b-256 checksum How to use checksums |
5dc7029abaca441616e949d234c09f0fbe0644c680d9a027dfac647968434040
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / hoist_http-1.0.1-py3-none-any.whl
| Download URL | hoist_http-1.0.1-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeb30bf77caff3f46a41f258588b66025a06c2bf523417da7fa52a56646a9437
|
|
BLAKE2b-256 checksum How to use checksums |
ef66fafb080525126b127d42e2534e409883a838c640475345ed22841fafbeb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|