youtrack-rest-client 0.1.5
A client library for accessing YouTrack REST API
⚠️This SDK generated using 2021.3 OpenAPI version by custom openapi-python-client which is under development.
It may have some bugs. Use with caution.⚠️
If you find a bug or want to request a new feature, please create an issue in YouTrack.
Usage
First, create a client:
from youtrack_rest_client import Client
client = Client(
hub_base_url="https://hub.jetbrains.com/api/rest",
youtrack_base_url="https://youtrack.jetbrains.com/api"
)
If the endpoints you're going to hit require authentication, use AuthenticatedClient instead:
from youtrack_rest_client import AuthenticatedClient
client = AuthenticatedClient(
hub_base_url="https://hub.jetbrains.com/api/rest",
youtrack_base_url="https://youtrack.jetbrains.com/api",
token=os.getenv("YOUTRACK_TOKEN")
)
Now call your endpoint and use your models:
from youtrack_rest_client.models import MyDataModel
from youtrack_rest_client.api.my_tag import get_my_data_model
from youtrack_rest_client.types import Response
my_data: MyDataModel = get_my_data_model.sync(client=client)
# or if you need more info (e.g. status_code)
response: Response[MyDataModel] = get_my_data_model.sync_detailed(client=client)
Or do the same thing with an async version:
from youtrack_rest_client.models import MyDataModel
from youtrack_rest_client.api.my_tag import get_my_data_model
from youtrack_rest_client.types import Response
my_data: MyDataModel = await get_my_data_model.asyncio(client=client)
response: Response[MyDataModel] = await get_my_data_model.asyncio_detailed(client=client)
Things to know:
- Every path/method combo becomes a Python module with four functions:
sync: Blocking request that returns parsed data (if successful) orNonesync_detailed: Blocking request that always returns aRequest, optionally withparsedset if the request was successful.asyncio: Likesyncbut the async instead of blockingasyncio_detailed: Likesync_detailedby async instead of blocking
- All path/query params, and bodies become method arguments.
- If your endpoint had any tags on it, the first tag will be used as a module name for the function (my_tag above)
- Any endpoint which did not have a tag will be in
youtrack_rest_client.api.default
Metadata
Release files for youtrack-rest-client 0.1.5
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-rest-client-0.1.5.tar.gz | 92.4 kB | Without provenance | Details for youtrack-rest-client-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youtrack_rest_client-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for youtrack_rest_client-0.1.5-py3-none-any.whl |
Total release size: 463.4 kB
Release files / youtrack-rest-client-0.1.5.tar.gz
| Download URL | youtrack-rest-client-0.1.5.tar.gz |
|---|---|
| Size | 92.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ae90610e0ad02bf9ca5a0e95f3c19cb697594d37bb05362b8427db49ccf3e7a
|
|
BLAKE2b-256 checksum How to use checksums |
472b228cef89b1d1fcfa818ea5768632815cd059b2359bdaac90569677ecbdf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.6 Windows/10
|
Release files / youtrack_rest_client-0.1.5-py3-none-any.whl
| Download URL | youtrack_rest_client-0.1.5-py3-none-any.whl |
|---|---|
| Size | 371.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9b19c64a26a2f6e06b45f876af613b5703a53faab8eb2b5b5e036efd5810fe2
|
|
BLAKE2b-256 checksum How to use checksums |
12c2dc782f4dead3c2631ea986d3feb938442fde412bed36bc67471120589ac1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.6 Windows/10
|
Security for youtrack-rest-client 0.1.5
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.