Skip to main content

python-socketio-stubs

License: MIT PyPI version python version

Type stubs for the python-socketio library.

Compatibility

These stubs target python-socketio==5.17.0.

The 5.17.0 update adds BaseManager.is_sid_room(namespace: str, room: str | None) -> bool, also inherited by synchronous and asynchronous managers. Other changes from 5.16.3 affect runtime behavior without changing API signatures.

Installation

pip install python-socketio-stubs

Usage

Once installed, type checkers will automatically discover and use these stubs when analyzing code that uses python-socketio:

from typing import Any, assert_type

import socketio

# Your type checker will now understand python-socketio's types
sio = socketio.Server()


@sio.event
def connect(sid: str, environ: dict[str, Any], auth: dict[str, Any] | None) -> None:
    session = sio.get_session(sid)
    assert_type(session, dict[str, Any])

License

MIT - see LICENSE for details.

Metadata

Release files for python-socketio-stubs 5.17.0.0.20261012

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-socketio-stubs 5.17.0.0.20261012
File Size Uploaded
python_socketio_stubs-5.17.0.0.20261012.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-socketio-stubs 5.17.0.0.20261012
File Interpreter ABI Platform
python_socketio_stubs-5.17.0.0.20261012-py3-none-any.whl Python 3 none any Details

Total release size: 40.4 kB

Release files / python_socketio_stubs-5.17.0.0.20261012.tar.gz

Download URL python_socketio_stubs-5.17.0.0.20261012.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cae69c6cc5ec1003bef19617d4f55e2158fc123ace4828999aa938d21b11af99
BLAKE2b-256 checksum
How to use checksums
4274f3ab3dec524d3708b8ea489f9bf8c3c037f2e8aec8553939279adf252422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / python_socketio_stubs-5.17.0.0.20261012-py3-none-any.whl

Download URL python_socketio_stubs-5.17.0.0.20261012-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
540d98e683f0174a9b45fe8272798ec119a995518c0c96821fc63d288b0113e6
BLAKE2b-256 checksum
How to use checksums
eedf05c152a12b80dfffc354f7d20d390ff39129e2ad481db2724417f4123975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page