Installation

dohq-teamcity is compatible with Python 2.7 and 3.4+ (dohq means DevOpsHQ).

Use pip to install the latest stable version of dohq-teamcity:

pip install --upgrade dohq-teamcity

The current development version is available on github. Use git and python setup.py to install it:

git clone https://github.com/devopshq/teamcity
cd teamcity
python setup.py install

Try connect to your TeamCity instance

from dohq_teamcity import TeamCity
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))
print(tc.server.get_server_info().version)