Client-Library for https://github.com/crs-tools/tracker
Project description
Python Client Library for C3-Ticket-Tracker
Client-Library for C3-Ticket-Tracker.
Example
Get the next Encoding-Ticket, work on it and set it Done:
import os
import socket
from src.c3tt_rpc_client import C3TTClient
cli = C3TTClient(os.environ['CRS_TRACKER'], os.environ['CRS_TOKEN'], socket.gethostname(), os.environ['CRS_SECRET'])
ticket = cli.assign_next_unassigned_for_state(ticket_type='encoding', to_state='encoding')
if ticket is None:
print('No Ticket for encoding')
else:
print('Got Ticket for encoding:')
print(ticket)
print('Set Ticket done')
cli.set_ticket_done(ticket)
Deploying
To Deploy a new Version to pypi, run ./upload_dist.sh. This will
- Clean previous Build-Results
- Setup a venv
- Install build/dist Tooling (built, twine, flake8)
- Lint the Code
- Create whl and tar.gz artifacts
- Upload them to pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
c3tt_rpc_client-1.0.tar.gz
(16.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file c3tt_rpc_client-1.0.tar.gz.
File metadata
- Download URL: c3tt_rpc_client-1.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
008e7c07934890399528f34bbd0ac942314773af44221b182d448333cb213336
|
|
| MD5 |
a6833cfd73b3a4f66b4089b605ce4de6
|
|
| BLAKE2b-256 |
0edf42b0f95df209fcdf6433918d69510f36d34f21c2b27e590e00c8baffc08e
|
File details
Details for the file c3tt_rpc_client-1.0-py3-none-any.whl.
File metadata
- Download URL: c3tt_rpc_client-1.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebc1deaf0008b83433cdbfde47f2a498e5f231abe345e488e3b9b21b797498fc
|
|
| MD5 |
5a8aeabd3b3f4ad886057b5ef290b508
|
|
| BLAKE2b-256 |
7b6342d615c7e681c7b706bfc0257c3fe55d9cdb5bbc9a80331109fe4355eaf7
|