• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

JetBrains/youtrack-rest-python-library: Python library for interacting with YouT ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

JetBrains/youtrack-rest-python-library

开源软件地址(OpenSource Url):

https://github.com/JetBrains/youtrack-rest-python-library

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

Deprecation Notice

This package is deprecated and will not work with YouTrack 2021.3 and later.

Please consider using OpenAPI support in YouTrack to generate client code. This is not a drop-in replacement, but it should be enough to get you started.

The package will also receive little support and maintenance, if any.

Features modified

  • Ported to python3
  • Added to_dict method on YouTrack objects

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap