Asynchronous Python framework to build TeamSpeak 3 Server Query bots
Project description
TSBot 
Asynchronous Python framework to build TeamSpeak 3 Server Query bots
✅ Features
- Modern Python
asyncandawaitsyntax - Fully typed interface
- Event, command and background task systems
- Secure connection through SSH, or raw connection for local servers
- Ease of use query building
- Automatic reconnection if connection is lost
- Built-in and configurable ratelimiter if no access to
query_ip_allowlist.txt
✏️ Examples
from __future__ import annotations
import asyncio
from tsbot import TSBot, TSCtx, query
bot = TSBot(
username="USERNAME",
password="PASSWORD",
address="ADDRESS",
)
@bot.command("hello")
async def hello_world(bot: TSBot, ctx: TSCtx):
await bot.respond(ctx, f"Hello {ctx['invokername']}!")
@bot.on("cliententerview")
async def poke_on_enter(bot: TSBot, ctx: TSCtx):
poke_query = query("clientpoke").params(clid=ctx["clid"], msg="Welcome to the server!")
await bot.send(poke_query)
asyncio.run(bot.run())
Check out 📁examples for more
📦 Installation
Python 3.10 or higher is required
Installing with pip:
# Linux/macOS
python3 -m pip install tsbot
# Windows
py -3 -m pip install tsbot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsbot-1.7.1.tar.gz.
File metadata
- Download URL: tsbot-1.7.1.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c2370b64d866b392792c0b6b521f1d323a90e9f4cff9b6ed4af420f1d9fe474
|
|
| MD5 |
4c8ad94de48d414aa634d5b9c42774a6
|
|
| BLAKE2b-256 |
a9743486eb7d02085b02a170d53b9b6b19054be86eb2871a23c917019438a77a
|
Provenance
The following attestation bundles were made for tsbot-1.7.1.tar.gz:
Publisher:
publish.yaml on jykob/TSBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsbot-1.7.1.tar.gz -
Subject digest:
7c2370b64d866b392792c0b6b521f1d323a90e9f4cff9b6ed4af420f1d9fe474 - Sigstore transparency entry: 270766387
- Sigstore integration time:
-
Permalink:
jykob/TSBot@3927a3669ce174fdb3768b10f69d62f16d30d2a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jykob
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@3927a3669ce174fdb3768b10f69d62f16d30d2a0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tsbot-1.7.1-py3-none-any.whl.
File metadata
- Download URL: tsbot-1.7.1-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc5e0b465be97c989d552e0e539582b4682afa76f29e6fdedb90d0027bb6af01
|
|
| MD5 |
da393a895a5cdb3074ac54f038cce806
|
|
| BLAKE2b-256 |
16821f7c05aca4340b77efdc13271e5a50bbe40d3b11f47d000cf7c136dd6083
|
Provenance
The following attestation bundles were made for tsbot-1.7.1-py3-none-any.whl:
Publisher:
publish.yaml on jykob/TSBot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsbot-1.7.1-py3-none-any.whl -
Subject digest:
dc5e0b465be97c989d552e0e539582b4682afa76f29e6fdedb90d0027bb6af01 - Sigstore transparency entry: 270766389
- Sigstore integration time:
-
Permalink:
jykob/TSBot@3927a3669ce174fdb3768b10f69d62f16d30d2a0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jykob
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@3927a3669ce174fdb3768b10f69d62f16d30d2a0 -
Trigger Event:
workflow_dispatch
-
Statement type: