Skip to main content

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


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.0.tar.gz (29.9 kB view hashes)

Uploaded Source

Built Distribution

hoist_http-1.0.0-py3-none-any.whl (35.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page