Skip to main content

kicksdk (Python)

Kick (kick.com) without the I/O: requests, response parsers, the realtime chat protocol and webhook verification, from the kicksdk Rust core.

pip install kicksdk-py          # the core
pip install "kicksdk-py[aio]"   # plus connect_chat over asyncio (httpx, websockets)

The import is kicksdk. (On PyPI the name is kicksdk-py: PyPI treats kicksdk as too close to the unrelated kick-sdk.)

import asyncio, kicksdk.aio

async def main():
    async with kicksdk.aio.connect_chat(chatroom_id, channel_id) as chat:
        async for e in chat:
            ev = e["event"]
            if ev["type"] == "chat_message":
                print(ev["sender"]["username"], ev["content"])

asyncio.run(main())

connect_chat reconnects by itself until the async with block ends, which closes the socket normally. After network errors, 5xx answers and dropped sockets it waits a jittered backoff (1 s doubling to 30 s); when Kick refuses the client (a ban, a refused token, a terminal close code), or after max_refusals (5) refused attempts in a row (a 403, say), it waits 5 minutes or more (10, 20, then 30 for more in a row) and comes back as a new client. Only an unexpected error (a bug) ends it early, raised by the async for. chat.last_drop says why the last connection ended and how long the wait is, chat.retrying whether it is waiting now, and the kicksdk.aio logger reports each drop. A failed token refresh keeps the connection. Events the consumer has not read wait in a buffer of max_queue (10,000); when it is full, overflow="drop_oldest" (the default) drops the oldest and counts them in chat.dropped, and overflow="backpressure" stops reading the socket until there is room. The kicksdk.aio module docs have the details.

Everything else returns kicksdk.Request objects for any HTTP client and parses what comes back (kicksdk.website.channel_request / parse_channel, kicksdk.public_api.livestreams_requests, kicksdk.webhooks.verify, …). Errors are kicksdk.KickError with kind and status.

kicksdk.webhooks.verify(public_key_pem, headers, body) takes the body as received (bytes, or str) and refuses a delivery more than 5 minutes from now (now= in Unix seconds, tolerance_secs=), so an old one cannot be replayed; skip_freshness=True re-checks a stored one.

Wheels are built for Linux, macOS and Windows (CPython 3.9+, one abi3 wheel per platform). Anywhere else pip builds from the source distribution, which needs a Rust toolchain.

Kick's realtime server only accepts Origin: https://kick.com; connect_chat sends it. MIT OR Apache-2.0. Not affiliated with Kick.

Live API coverage

The shared core was checked against Kick on 2026-11-15: OAuth code exchange with PKCE, refresh/revocation/introspection, app and user reads, chat send/reply/delete, timeout/ban/unban and reward create/update/delete. Bot send returned 404; channel editing was skipped because no original title was available to restore. Ad breaks, enrollment, drops and redemption accept/reject remain documentation-based. See the repository docs/KICK.md and fixtures/{public_api,id}/README.md for evidence and limits.

Check granted OAuth scopes before protected calls: Kick can grant fewer than requested. Never log tokens, client secrets, authorization codes, PKCE verifiers or requests carrying them.

Metadata

Release files for kicksdk-py 0.3.0

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

Source distribution (sdist)

Source distribution for kicksdk-py 0.3.0
File Size Uploaded Provenance Actions
kicksdk_py-0.3.0.tar.gz 140.3 kB With provenance Details for kicksdk_py-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kicksdk-py 0.3.0
File Actions
kicksdk_py-0.3.0-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for kicksdk_py-0.3.0-cp39-abi3-win_arm64.whl
kicksdk_py-0.3.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for kicksdk_py-0.3.0-cp39-abi3-win_amd64.whl
kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl
kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
kicksdk_py-0.3.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for kicksdk_py-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
kicksdk_py-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for kicksdk_py-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 4.5 MB

Release files / kicksdk_py-0.3.0.tar.gz

Download URL kicksdk_py-0.3.0.tar.gz
Size 140.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3664be9527c6bd47921b235a30bdac6fa2ff2702d7e66a90b3e0824211952e33
BLAKE2b-256 checksum
How to use checksums
8e1d67df76484dff4013766146269e26d4de10362731f0cc28bb59f1180d895d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-win_arm64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-win_arm64.whl
Size 444.6 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
dc61f3bb5c0c7c8af3de930118556c633b1a979510acab5686397f520e980d2b
BLAKE2b-256 checksum
How to use checksums
34ef547fa3d03991051197a72cbb1998e5c95305fdef6aa2cb1ec80d8ecf3392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-win_amd64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-win_amd64.whl
Size 457.2 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cd25876e9c8d23e73eaae3d6663b58cc12cc1f4c13c11c18fb2bdb88148d76de
BLAKE2b-256 checksum
How to use checksums
d39bfd63eeefae4cf8803b70cbd84a44954e0fae978f9a58433c92a10b6604d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 746.2 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
435c4acbe00601e1537a44ce71445e1376fd81286ccf84635fd2146c5903d471
BLAKE2b-256 checksum
How to use checksums
57e4865f1dbe1a31565fcbb2d7b2d64ba79d06b1caaa9dad1f1bed89293bf0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 690.2 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
69fabde8b56d3e8ba1e1db1d66b88e85885252133b7ff90c0b83b79790b2024f
BLAKE2b-256 checksum
How to use checksums
d018cf53bc781459c770758172058dec3136f29734330dae68d14d8a47d5c0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 532.2 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
96aed458093c2957960eeed4640ad7f7bb821239a7bee6f4e6c2baa9da7d9726
BLAKE2b-256 checksum
How to use checksums
577b9af7a5d5459ac71fff1f64aba6c3882b2229c1217443a7c59c250b9b45c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 511.3 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
3d421c6b072a17b44af41e6d7b35b4721a97562c39d86bdf1ca211fa8dd9e004
BLAKE2b-256 checksum
How to use checksums
16e6ffe9b79bf0804b448bbff193527f9cd6934bf2dbc73b115c1535eb16f01b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Size 497.3 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
807ee89fe5045d3a15f2ff1289675e73fe035018f5ceca4488898943abbcca3f
BLAKE2b-256 checksum
How to use checksums
4fbf63b820d91aa370476d7e16224e14d74ca31dc7083b869a7ddd5cfe7ca2e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / kicksdk_py-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL kicksdk_py-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 520.6 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
cbbab124af165831a4b2e95732966a96fd6a43bb804b01ad07984327680ace8d
BLAKE2b-256 checksum
How to use checksums
7525495086ece7d0d3dbf7817562dbb1b6a8feaa5d4d5ae72987ff6f51df5579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for kicksdk-py 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for kicksdk_py-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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