Andrew Williams 74b350e9dd Don't use formatting on bytes
Formatting bytes works on Py2.x, but breaks in Py3.x, this should resolve the issues but further unit tests will be need to capture any regressions. Formatting will be supported in Py3.5, but generally it'll be better to avoid formatting where it isn't really needed. Resolves #6
2015-02-16 10:34:04 +00:00
2014-03-29 00:19:15 +00:00
2015-02-16 10:34:04 +00:00
2013-10-27 17:06:39 +00:00
2015-02-16 10:25:44 +00:00
2011-03-02 22:28:32 +00:00
2014-03-27 10:25:36 +00:00
2014-03-29 00:03:55 +00:00

python-ts3

python-ts3 is a abstraction library around the Teamspeak 3 ServerQuery API. It allows native access to the ServerQuery API with most of the formatting headaches avoided.

Build Status

Python Support

python-ts3 is targeted at Python 2.6/2.7/3.2/3.3 support, along with PyPy support.

Install

Download the most recent sourcecode and install it::

git clone git://github.com/nikdoof/python-ts3.git
cd python-ts3
python setup.py install

A stable version of python-ts3 is available on PyPi. Active development is done in the develop branch with release version merged into master

Example Usage

Example showing how to create a channel and sub-channel for it using python-ts3 library::

import ts3

server = ts3.TS3Server('127.0.0.1', 10011)
server.login('serveradmin', 'secretpassword')

# choose virtual server
server.use(1)

# create a channel
response = server.send_command('channelcreate', keys={'channel_name': 'Just some channel'})

# id of the newly created channel
channel_id = response.data[0]['cid']

# create a sub-channel
server.send_command('channelcreate', keys={'channel_name': 'Just some sub-channel', 'cpid': channel_id})
Description
No description provided
Readme BSD-3-Clause 178 KiB
Languages
Python 100%