Skip to main content

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

This version

1.0

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)

Uploaded Source

Built Distribution

c3tt_rpc_client-1.0-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page