Skip to main content

texgrid repository administration cli tool, based on tgclients

Project description

tgadmin

a command line tool for managing your projects without TextGridLab.

Install

You may use this with venv or with pipx. with pipx you have the benefit of just having the command available without further manual venv creation and activation

Possibility 1) install and use with pipx

Install pipx, e.g. on debian/ubuntu apt install pipx

and then this tool (from this dir, where this README is located)

    pipx install .

Possibility 2) venv

    python3 -m venv venv
    . venv/bin/activate
    pip install --editable .

afterwards you have tgadmin in this venv available, but need to activate this venv for using the tool

Usage

export sid

get from https://dev.textgridlab.org/1.0/Shibboleth.sso/Login?target=/1.0/secure/TextGrid-WebAuth.php?authZinstance=textgrid-esx1.gwdg.de

and set as env var:

    export TEXTGRID_SID=your_secret_sid_here

or set with --sid for every command

get help

    tgpadmin

list projects

list your projects:

    tgadmin list

create project

if there is no suitable project, create one:

    tgadmin create lab-import-test-20230605

Development

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgadmin-0.1.0.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

tgadmin-0.1.0-py3-none-any.whl (11.3 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