Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Every followed channel

kicksdk.aio.fetch_all_followed(session) retrieves every followed channel for the viewer. Pages are requested sequentially at 5 channels per page (e.g. 49 channels = 10 requests) and deduplicated. The session_token is a full-account credential: never log it.

import asyncio, kicksdk.aio

async def main():
    channels = await kicksdk.aio.fetch_all_followed("session_token")
    for c in channels:
        print(c["slug"], c["live"])

asyncio.run(main())

Search channels

kicksdk.website.search_request(query) finds channels by name on kick.com (no login; Kick wants at least 3 characters and returns up to 20). Unofficial, so it can change.

import httpx
from kicksdk import website

req = website.search_request("xqc")
res = httpx.request(req.method, req.url, headers=req.headers)
for c in website.parse_search(res.status_code, res.text):
    print(c["slug"], c["username"], c["live"], c["followers_count"])

Chat rules

kicksdk.website.chatroom_settings_request(slug) reads a channel's chat rules (no login): slow mode in seconds, followers-only and minimum account age in minutes (None when off), subscribers- and emotes-only. Unofficial, so it can change.

req = website.chatroom_settings_request("xqc")
res = httpx.request(req.method, req.url, headers=req.headers)
s = website.parse_chatroom_settings(res.status_code, res.text)
print(s["chatroom_id"], s["slow_mode"], s["followers_only"], s["account_age"])

Current viewers

kicksdk.website.current_viewers_request(livestream_ids) finds the viewers of up to 10 live streams by livestream id (WebsiteChannel.livestream_id) in one call, no login. Unknown or ended streams are left out. Unofficial, so it can change.

req = website.current_viewers_request([140936442, 140966175])
res = httpx.request(req.method, req.url, headers=req.headers)
for s in website.parse_current_viewers(res.status_code, res.text):
    print(s["livestream_id"], s["viewers"])

Follow a channel

website.follow_request follows a channel as the signed-in viewer and website.unfollow_request unfollows it (session_token needed; read the answer with website.parse_action). Unverified: taken from a community list and never recorded against Kick.

req = website.follow_request(session_token, "xqc")

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.4.0b4

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.4.0b4
File Size Uploaded Provenance Actions
kicksdk_py-0.4.0b4.tar.gz 157.6 kB With provenance Details for kicksdk_py-0.4.0b4.tar.gz

Built distributions (wheels)

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

Total release size: 5.0 MB

Release files / kicksdk_py-0.4.0b4.tar.gz

Download URL kicksdk_py-0.4.0b4.tar.gz
Size 157.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9512d8da5200a73eefd7197c539bfc7f95fa931e83a76e9ca600a583cdaeb312
BLAKE2b-256 checksum
How to use checksums
912ee884f476ab7a834d914f2c6308418a8bc6ce163d389f3a0fd9a38cc46bed
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-win_arm64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-win_arm64.whl
Size 507.3 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
008a0de4cf117e061c983fac7409bd58f285d74c61d7c287ea94511066912ba7
BLAKE2b-256 checksum
How to use checksums
07170bf7e9736dd9f78b5c8f1b02f90b1857da50d38104add7f3d675d7c77f0a
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-win_amd64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-win_amd64.whl
Size 518.7 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2f6a66f76b1a1ea1c2f85dbb840cc1cc6a909223c7c090e10382c6c2d994a446
BLAKE2b-256 checksum
How to use checksums
828f197dfb9e028323bdd9cb325934411a7bb910cd00c169f81a2500e532d31d
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-musllinux_1_2_x86_64.whl
Size 800.4 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e85cd27605a7719016f8bcfa170fe1154d76c4b26007757cf6e0756cbf65c2fa
BLAKE2b-256 checksum
How to use checksums
7aec17e2ca0e67a247e28836b22d9eb3a9c3385ab7addf93d0561ad123e64086
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-musllinux_1_2_aarch64.whl
Size 744.9 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
62467cc4cf535e085dee08e21649f26386f6e01bdfcce756bd5dc9d67c9bf27f
BLAKE2b-256 checksum
How to use checksums
902b473ab0b630ae1eecb1bf5e51b2fc65a396e8c4fca93b362ff1774221a0e7
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 587.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
60f6f6e7180eba8dc8a1641c537633a1d4f830022e4f947f22fbbe3ea17ab6d2
BLAKE2b-256 checksum
How to use checksums
c8a329d035eb14e469fcb24c454f2343f8c3c2b90a89f8194c5143912d24e9b3
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 566.7 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
28287a45c69a5a72554eaa52754710ca2a7c10dea47069747c3117c149cf46da
BLAKE2b-256 checksum
How to use checksums
84f16cb43c5448698050c05d8bfdbc1d11ea21b42990a74a71570a93d1046547
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-macosx_11_0_arm64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-macosx_11_0_arm64.whl
Size 556.8 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5f818c1dd9a2799e1c77f029327267d633c51bf824b17b894e74b2c8ddbb0659
BLAKE2b-256 checksum
How to use checksums
cfda139f00c19386c30f0cd175a38ceae6eee3ef586a7b8f772a17f36f31202d
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 29, 2026.

Transparency log

Release files / kicksdk_py-0.4.0b4-cp39-abi3-macosx_10_12_x86_64.whl

Download URL kicksdk_py-0.4.0b4-cp39-abi3-macosx_10_12_x86_64.whl
Size 577.8 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1fef68ec4be4782050c09ccadbdee25d0f2f1c85d48fbc13a9f19462eb23b65b
BLAKE2b-256 checksum
How to use checksums
b200d5f7be25cf2f0bd46fa39e55ce2e6acfc2617ae93be25b2dbceb70157f78
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 29, 2026.

Transparency log

Security for kicksdk-py 0.4.0b4

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.4.0b4.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 29, 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