YouTrack REST API Client
A client library for accessing YouTrack REST API.
Usage
from datetime import date
from youtrack_sdk import Client
from youtrack_sdk.entities import (
DateIssueCustomField,
EnumBundleElement,
Issue,
Tag,
Project,
SingleEnumIssueCustomField,
SingleUserIssueCustomField,
StateBundleElement,
StateIssueCustomField,
User,
)
client = Client(base_url="https://dummy.myjetbrains.com/youtrack", token="dummy")
result = client.create_issue(
issue=Issue(
project=Project(id="0-0"),
summary="Created from YouTrack SDK",
description="Description **text**.",
tags=[
Tag(id="6-0"),
],
custom_fields=[
StateIssueCustomField(
name="State",
value=StateBundleElement(
name="In Progress",
),
),
SingleUserIssueCustomField(
name="Assignee",
value=User(
ring_id="00000000-a31c-4174-bb27-abd3387df67a",
),
),
SingleEnumIssueCustomField(
name="Type",
value=EnumBundleElement(
name="Bug",
),
),
DateIssueCustomField(
name="Due Date",
value=date(2005, 12, 31),
),
],
),
)
Note
- You should prefer to use internal entity IDs everywhere. Some methods accept readable issue IDs (e.g. HD-99) but it's not supported everywhere.
Metadata
Release files for youtrack-sdk 1.0.202311200940
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| youtrack_sdk-1.0.202311200940.tar.gz | 9.4 kB | Without provenance | Details for youtrack_sdk-1.0.202311200940.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youtrack_sdk-1.0.202311200940-py3-none-any.whl | Python 3 | none | any | Details for youtrack_sdk-1.0.202311200940-py3-none-any.whl |
Total release size: 19.6 kB
Release files / youtrack_sdk-1.0.202311200940.tar.gz
| Download URL | youtrack_sdk-1.0.202311200940.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b2da45c7f86aad7db096df80c76cad40c91e28bc1f0949375482f692334b462
|
|
BLAKE2b-256 checksum How to use checksums |
c3cd8961fe053a0c7d83f8fa7204ef98a339f5a547e180ec464e8f2a15cdba23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1015-azure
|
Release files / youtrack_sdk-1.0.202311200940-py3-none-any.whl
| Download URL | youtrack_sdk-1.0.202311200940-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffb6c30a3230ae50d6e44d4273193e0d34baee25897929eea3c18b9a1237b52b
|
|
BLAKE2b-256 checksum How to use checksums |
bfdb1f20e955c81e170b0cd4c0731c4365e3e96bb9c0af0f4e8af371b227a9d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-1015-azure
|
Security for youtrack-sdk 1.0.202311200940
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.