An open API service indexing awesome lists of open source software.

https://github.com/devopshq/youtrack

YouTrack Python 3 Client Library
https://github.com/devopshq/youtrack

jetbrains python python-library youtrack

Last synced: 2 months ago
JSON representation

YouTrack Python 3 Client Library

Awesome Lists containing this project

README

          

YouTrack Python 3 Client Library
================================

[![build](https://travis-ci.org/devopshq/youtrack.svg?branch=master)](https://travis-ci.org/devopshq/youtrack) [![pypi](https://img.shields.io/pypi/v/dohq-youtrack.svg)](https://pypi.python.org/pypi/dohq-youtrack) [![codacy](https://api.codacy.com/project/badge/Grade/9f6d2c74eb1a4d798b87bd05bed6ee21)](https://www.codacy.com/app/devopshq/youtrack) [![license](https://img.shields.io/pypi/l/dohq-youtrack.svg)](https://github.com/devopshq/youtrack/blob/master/LICENSE)

This document describes Python 3 library that wraps YouTrack REST API.

Compatibility

Current implementation of the YouTrack Python 3 Client Library and scripts is compatible with YouTrack 3.x and higher REST API and Python 3.

Installation
------------

To install YouTrack Python 3 Client Library:

```python
pip install dohq-youtrack
```

Authenticating
--------------

```python
from youtrack.connection import Connection
connection = Connection('http://teamsys.intellij.net', 'xxx', 'xxx')
```

Get Issues
----------

```python
# get one issue
connection.get_issue('SB-1')
```

```python
# get first 10 issues in project JT for query 'for: me #unresolved'
connection.get_issues('JT', 'for: me #unresolved', 0, 10)

# get issues from all projects
connection.get_all_issues('for: me #unresolved', 0, 10)

```

Create Issue
------------

```python
connection.create_issue('SB', 'resttest', 'Test issue', 'Test description', '2', 'Bug', 'First', 'Open', '', '', '')
```

Other Methods
-------------

See method of class Connection in [youtrack/connection.py](https://github.com/devopshq/youtrack/blob/master/youtrack/connection.py)