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.1.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

hoist_http-1.0.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file hoist_http-1.0.1.tar.gz.

File metadata

  • Download URL: hoist_http-1.0.1.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for hoist_http-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cb87f4f6c29c02c4df95a38cb2fe0d00fdb2a82adfbd5a737e34d2a4c6148eac
MD5 476fb0c216bc71f9247d75b1b5b65083
BLAKE2b-256 5dc7029abaca441616e949d234c09f0fbe0644c680d9a027dfac647968434040

See more details on using hashes here.

File details

Details for the file hoist_http-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hoist_http-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for hoist_http-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb30bf77caff3f46a41f258588b66025a06c2bf523417da7fa52a56646a9437
MD5 677759a8bf6f72f7ba6e8153041c0e20
BLAKE2b-256 ef66fafb080525126b127d42e2534e409883a838c640475345ed22841fafbeb6

See more details on using hashes here.

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