https://github.com/zerointensity/hoist
Developer-oriented client-server communication library.
https://github.com/zerointensity/hoist
Last synced: about 1 month ago
JSON representation
Developer-oriented client-server communication library.
- Host: GitHub
- URL: https://github.com/zerointensity/hoist
- Owner: ZeroIntensity
- License: mit
- Created: 2022-07-27T21:32:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T18:05:26.000Z (over 3 years ago)
- Last Synced: 2025-03-10T14:50:16.609Z (11 months ago)
- Language: Python
- Homepage: https://hoist.zintensity.dev
- Size: 192 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Hoist
## Developer-oriented client-server communication
- [Documentation](https://hoist.zintensity.dev)
- [PyPI](https://pypi.org/project/hoist-http/)
### Quick Example
```py
import hoist
server = hoist.start("test")
@server.receive("hello")
async def hello(message: hoist.Message) -> None:
print("server got hello")
await message.reply("hi")
```
```py
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
```