A CLI to interact with AusTrakka
Project description
AusTrakka CLI
CLI for AusTrakka V2
Environment Variables
Name | Description |
---|---|
AT_TOKEN |
AusTrakka auth token |
AT_URI |
URI for API endpoint |
AT_ENV |
Set to dev to log debugging |
AT_LOG |
Set to file to redirecting logging to a temp file |
AT_CMD_SET |
Set to austrakka-admin to display admin commands |
All commands require AT_URI
and AT_TOKEN
to be set, except for auth
commands.
Authorisation
User
Set the following env var
export AT_TOKEN=$(austrakka auth user)
Process
Set the following env var
export AT_TOKEN=$(austrakka auth process)
Project Structure
Each logical component of the system has its own package under austrakka/
. Eg. austrakka/job
.
Components that are children of another component are nested beneath. Eg. austrakka/job/instance
.
Each component package contains the following files:
File | Purpose |
---|---|
__init__.py |
Contains the Click commands offered by the component. Note that even if a component does not have any commands associated with it, this file must exist for the final build to include it. |
funcs.py |
Any functions associated with the component. |
opts.py |
Click command line options associated with the component. Defined here so they can be reused across the CLI. Eg. --species is used for multiple commands. The species CLI option is defined here and imported to all commands that use it. |
enums.py |
Any enumerations associated with the component. |
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
austrakka-0.22.0-py3-none-any.whl
(45.8 kB
view hashes)
Close
Hashes for austrakka-0.22.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8de5bc7023d3cf2ed9374cf74e6271fa2af55e2a14cacc5a2c8c90cdf09ce09c |
|
MD5 | 6fb3b0e1443f00208f90ed8c4ea7cfab |
|
BLAKE2b-256 | 3b55db04709cd9ba3eef52154fd62220b55f13f6903522f43c831fbc53b650cd |