Use the TeamCity REST API from Python
Project description
# Pytc3 [WIP]
**This is not production Ready yet.**
[](https://pypi.python.org/pypi/pytc3/)
[](https://travis-ci.org/ageekymonk/pytc3)
Python interface to the [REST
API](https://confluence.jetbrains.com/display/TCD10/REST+API) of
[TeamCity](https://www.jetbrains.com/teamcity/)
## Installation
```
pip install pytc3
```
## Examples
### Connect to server
```python
from pytc3 import TeamCity
# This initialises the Client with the settings passed. <port> has to be an integer.
tc = TeamCity('account', 'password', 'server', <port>)
```
or specify no parameters and it will read settings from environment
variables:
- `TEAMCITY_USER`
- `TEAMCITY_PASSWORD`
- `TEAMCITY_HOST`
- `TEAMCITY_PORT` (Defaults to 80 if not set)
```python
from pytc3 import TeamCity
# Initialises with environment variables: TEAMCITY_{USER,PASSWORD,HOST,PORT}
tc = TeamCity()
```
### Getting data
You can also look at
[sample.py](https://github.com/ageekymonk/pytc3/blob/master/sample.py)
## Acknowledgements
This is a heavily-modified fork of https://github.com/SurveyMonkey/pyteamcity so many thanks are due to [SurveyMonkey](https://github.com/SurveyMonkey)
# Changes
**This is not production Ready yet.**
[](https://pypi.python.org/pypi/pytc3/)
[](https://travis-ci.org/ageekymonk/pytc3)
Python interface to the [REST
API](https://confluence.jetbrains.com/display/TCD10/REST+API) of
[TeamCity](https://www.jetbrains.com/teamcity/)
## Installation
```
pip install pytc3
```
## Examples
### Connect to server
```python
from pytc3 import TeamCity
# This initialises the Client with the settings passed. <port> has to be an integer.
tc = TeamCity('account', 'password', 'server', <port>)
```
or specify no parameters and it will read settings from environment
variables:
- `TEAMCITY_USER`
- `TEAMCITY_PASSWORD`
- `TEAMCITY_HOST`
- `TEAMCITY_PORT` (Defaults to 80 if not set)
```python
from pytc3 import TeamCity
# Initialises with environment variables: TEAMCITY_{USER,PASSWORD,HOST,PORT}
tc = TeamCity()
```
### Getting data
You can also look at
[sample.py](https://github.com/ageekymonk/pytc3/blob/master/sample.py)
## Acknowledgements
This is a heavily-modified fork of https://github.com/SurveyMonkey/pyteamcity so many thanks are due to [SurveyMonkey](https://github.com/SurveyMonkey)
# Changes
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
pytc3-0.1.1.tar.gz
(13.1 kB
view details)
Built Distribution
pytc3-0.1.1-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file pytc3-0.1.1.tar.gz
.
File metadata
- Download URL: pytc3-0.1.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6602388a53235cedd3fce8fcceaeac962bfd9d23952da3cba041fbdf50caca51
|
|
MD5 |
8c905997a2fea5b6a5d074f75404389e
|
|
BLAKE2b-256 |
3e8c0b23373c5a9e607140287be4f71c3670782eeee2f34b6f324c7c2d2ebd38
|
File details
Details for the file pytc3-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pytc3-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9cb92af614960795d0a0c5f6daa2a10649265cd8e1d82ffbd6b10d1316ff9c70
|
|
MD5 |
a81d84e8ae56808b1f5ba0e4f4a1d1db
|
|
BLAKE2b-256 |
f4e8570d687d81af48ab54d2d719eda0403eb2108d7c306bafc9169e1d347419
|