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 hashes)
Built Distribution
Close
Hashes for c3tt_rpc_client-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebc1deaf0008b83433cdbfde47f2a498e5f231abe345e488e3b9b21b797498fc |
|
MD5 | 5a8aeabd3b3f4ad886057b5ef290b508 |
|
BLAKE2b-256 | 7b6342d615c7e681c7b706bfc0257c3fe55d9cdb5bbc9a80331109fe4355eaf7 |