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.post1.tar.gz (41.9 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.post1-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quart_socketio-0.0.1.post1.tar.gz
  • Upload date:
  • Size: 41.9 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.post1.tar.gz
Algorithm Hash digest
SHA256 4ddaddb2e16f092657c9cd26888664b6de77b30462f18db9e3b3e425c9811fc9
MD5 487f2bf8fcd4302342e3e07d6a17a959
BLAKE2b-256 232d14f510587fce0221dec6d664dcebd030b3866c751ea4ad5ef85a100eb105

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for quart_socketio-0.0.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 377065c5759c41723d7e0fc20b853766250c3ea0c102b451cf53823d34ae20aa
MD5 5d0d9655d3aac7586b8b1f638e883a43
BLAKE2b-256 9d2f6474db2a3616887600712b25ef4de3a9b1c6f92854d1bd644de5d456b4a8

See more details on using hashes here.

Provenance

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