Skip to main content

Async Socket.IO integration for Quart applications

Project description

pulseio

Socket.IO integration for Quart applications.

Note: This project is a fork of Flask-SocketIO, adapted to work with the Quart framework.

Installation

You can install this package using pip:

pip install git+https://github.com/Robotz213/Quart-SocketIo.git

For local development, use uv:

uv sync --all-extras --dev
uv run ruff format .
uv run ruff check .
uv run pyright
uv run pytest
uv run mkdocs serve

Example

from quart import Quart, render_template
from pulseio import SocketIO, emit

app = Quart(__name__)
app.config["SECRET_KEY"] = "secret!"
socketio = SocketIO(app)


@app.route("/")
async def index():
    return await render_template("index.html")


@socketio.event
async def my_event(message):
    await emit("my response", {"data": "got it!"})


if __name__ == "__main__":
    socketio.run(app)

Resources

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

quart_socketio-0.0.1.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

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

quart_socketio-0.0.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file quart_socketio-0.0.1.tar.gz.

File metadata

  • Download URL: quart_socketio-0.0.1.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quart_socketio-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f3076f178087effb0919042309a2f0f536b8c99bf5eafeba880277a38722de76
MD5 e3a311b57a3147fae51b2945436c27b6
BLAKE2b-256 06056bfab75c99a3f0edcedfc888149bfd6339c782eddbf46ca297613a94c2ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_socketio-0.0.1.tar.gz:

Publisher: python-publish.yml on Robotz213/Quart-SocketIo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quart_socketio-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: quart_socketio-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quart_socketio-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81534d081b06b71d2463ee3edf3032f18a1c6537e1774d93e172bacd9b17e68a
MD5 01b6a87b1f5aaa0a6040916925a6ad8b
BLAKE2b-256 aaea44798c5b4eb33d658ff41326f3199d056f5ff9a4b95e0a8aeb65762e45f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_socketio-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on Robotz213/Quart-SocketIo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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