Giter Site home page Giter Site logo

fullstackenviormentss / youtrack-rest-python-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetbrains/youtrack-rest-python-library

0.0 2.0 0.0 20.89 MB

Python library for interacting with YouTrack via REST API

Home Page: http://www.jetbrains.com/youtrack/

License: Other

Python 100.00%

youtrack-rest-python-library's Introduction

official JetBrains project

YouTrack REST API Client Library for Python

This is a Python client library that you can use to access the REST API for JetBrains YouTrack. Previously, this repository also included command-line tools for importing issues from other issue trackers. We have created a separate repository to store scripts that use this library.

The primary purpose of this library is to support migration to YouTrack, but you are welcome to build integrations with it as well. If you choose to work with this library, please be mindful of the following limitations:

  • We don't provide any documentation for this library. You can either learn through trial and error or by dissecting the import scripts in the linked repository.
  • This library references an older version of the YouTrack REST API. Many of the newer features in YouTrack are not supported.

We will continue to support this library with updates that are required to support issue import. Other issues that are not import related may be closed. Our intention is to eventually publish a fully-documented library that uses the latest version of the YouTrack REST API and is also compatible with Python 3.

Compatibility

This client library and the import scripts that use the library are compatible with Python 2.7+. Python 3 releases are not supported.

This library supports YouTrack Standalone versions 5.x and higher as well as the current version of YouTrack InCloud. The REST API is enabled by default in all YouTrack installations.

Getting Started

This package has been published to PyPI and can be installed with pip. pip install youtrack

Authentication

To communicate with YouTrack, you need a connection.

  • The preferred method is to use a permanent token for authentication requests. You can generate your own permanent tokens in your user profile. For instructions, refer to the YouTrack documentation.
  • You can also authenticate using a login and password, however, these values are printed in plain text and expose your credentials in your client application.
from youtrack.connection import Connection as YouTrack

// authentication request with permanent token
yt = YouTrack('https://instance_name.myjetbrains.com/youtrack/', token='perm:abcdefghijklmn')

// versus authentication with username and password
yt = YouTrack('https://instance_name.myjetbrains.com/youtrack/', login='username', password='password')

This request requires that you specify the base URL of the target YouTrack server. For YouTrack InCloud instances, your base URL includes the trailing /youtrack, as shown in the previous example.

Once you have established a connection, your credentials are cached for subsequent requests.

Supported Operations

Most of the operations that are supported by the YouTrack REST API are mapped to methods for the Connection object. The Python client library, however, supports a simplified set of parameters. In some cases, like createIssue, the Python method supports a custom set of request parameters.

To learn more about the YouTrack REST API, refer to the YouTrack documentation.

YouTrack Support

Your feedback is always appreciated.

youtrack-rest-python-library's People

Contributors

anna239 avatar boot85 avatar bsutherland avatar dguidi avatar edoshor avatar extempl avatar grzegorznowak avatar jiakuan avatar jimmystridh avatar kirmandi avatar klkvsk avatar kropp avatar nebaughman avatar nightflash avatar pacopablo avatar pantosh avatar pavel-nikolaev avatar rokasvaliukasnfq avatar rushimusmaximus avatar sebastianhaas avatar vakopian avatar willholley avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.