Skip to main content

date based TeamSpeak Group Assigner

Project description

TeamSpeak GroupAssigner

PyPI PyPI CodeFactor

Overview

TSGroupAssigner is a module which allows to automatically assign server groups to voice clients, if they connect within a specific date range.

example

This small example script could be called before christmas to assign the group 24 to every voice client connecting to the server id 1. The process will terminate gracefully, when the configured date range is exceeded.

import datetime as dt
import logging
from TSGroupAssigner import GroupAssigner, DateException

logger = logging.getLogger()
logger.setLevel(logging.INFO)

params = {
    'host': 'localhost',
    'port': 10011,
    'user': 'serveradmin',
    'password': '5up3r_53cr37',
    'sid': 1,
    'gid': 24
}

target = dt.date(year=2020, month=2, day=14)
duration = dt.timedelta(days=2)

try:
    GroupAssigner(date=target, nick="James", delta=duration, **params).start()
except DateException as err:
    logger.error(err)

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

TSGroupAssigner-0.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

TSGroupAssigner-0.2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file TSGroupAssigner-0.2.tar.gz.

File metadata

  • Download URL: TSGroupAssigner-0.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for TSGroupAssigner-0.2.tar.gz
Algorithm Hash digest
SHA256 34159226125837e09b5b5e661c7d8bdc3ece400066e089e9b27f559a38c9920c
MD5 370517bb2aed610fce326037c4a02a56
BLAKE2b-256 aa334dc39fb962ed29278956b46b041ffe4a21bef6c4d0dd1a9f7bd081e26af4

See more details on using hashes here.

File details

Details for the file TSGroupAssigner-0.2-py3-none-any.whl.

File metadata

  • Download URL: TSGroupAssigner-0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for TSGroupAssigner-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa9ab482ff09c7968f0f541ba0a45b7472063057732c5445fa8765156b7768f6
MD5 d82f1feb163a23bdbb33ada13fc78c14
BLAKE2b-256 920973fe0e877b05a839f2dde8b60d574b45af53563e90c4d097b0277f0aa5f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page