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.post2.tar.gz (42.0 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.post2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quart_socketio-0.0.1.post2.tar.gz
  • Upload date:
  • Size: 42.0 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.post2.tar.gz
Algorithm Hash digest
SHA256 122cf8e1d670c317ef28fb2664a92c75e55d18a5e0ce1fd6b010a2f19cc6f55b
MD5 636377b2491cf1675ab605e38105d363
BLAKE2b-256 e693f5be69489a36c8566b3cc14d5a8ed6135b5ab8c0ed8a09eeb6edeba48740

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_socketio-0.0.1.post2.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.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for quart_socketio-0.0.1.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 e7dc59e02e0ec83743ed990368b6d3a85a75b32b1104493047b7e1cfd66f2112
MD5 dd22f04226747c62e2456af4f0d0e650
BLAKE2b-256 3fd6ad57b59df318592e09627d001a899fe0131718300df927a58442bf319820

See more details on using hashes here.

Provenance

The following attestation bundles were made for quart_socketio-0.0.1.post2-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