Skip to main content

Websocket training project

Project description

Installation

pip install websocket-training

Usage

import uvicorn
from fastapi import FastAPI

from websocket_training.ws_router import connect_ws, get_ws_manager, ConnectionManager

app = FastAPI()
connect_ws(app)

manager: ConnectionManager = get_ws_manager()
print(manager.count())


if __name__ == '__main__':
    uvicorn.run('main:app')

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

websocket_training-0.1.8.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

websocket_training-0.1.8-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file websocket_training-0.1.8.tar.gz.

File metadata

  • Download URL: websocket_training-0.1.8.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.4 Linux/5.15.0-88-generic

File hashes

Hashes for websocket_training-0.1.8.tar.gz
Algorithm Hash digest
SHA256 5b55e3df6ae4aa7f6da56ab1384b9f534b6ba62dec0c7c29ef7fe073c5ad96ef
MD5 2d370b207de1a4eb5d106abe3dd0d431
BLAKE2b-256 1e7bafbe3346e22b00a6d70c7096bf4a8976fc72fd1ce7e8bce43d97ec5ec35f

See more details on using hashes here.

File details

Details for the file websocket_training-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: websocket_training-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.4 Linux/5.15.0-88-generic

File hashes

Hashes for websocket_training-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c88ad5005b63365b585cc80959317823ac5794828ee77a4d9110f7b4abb62e
MD5 b01c130b1a2cc1487228dd0bc53b0e49
BLAKE2b-256 1b6e6c494809bd3f0c4b5abde6e444878c07c0a91816a51c772d76bd7c2c3455

See more details on using hashes here.

Supported by

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