Skip to main content

Kontr portal CLI

Project description

Kontrctl - Kontr portal CLI client

kontrctl - Kontr Portal management CLI Tool


There are multiple variants how to install and run the kontrctl.

Install from pypi registry

The best way to install the kontrctl is using the pip.

pip install kontrctl

Install from source

For development purposes clone the repository and install dependencies using the pipenv

git clone
pipenv install

Update kontr-api (optional)

pipenv update kontr-api
pipenv shell

Run the kontrctl

kontrctl --help

Development run

Run the development version

python -m kontrctl.cli --help

First run setup

Before using the kontrctl to manage the portal and submit, you need to set remote

kontrctl remotes add default
kontrctl remotes select default
kontrctl login  # Provide username and password


Remote sets location and default params for the kontr instance

kontrctl remotes --help
kontrctl remotes list
kontrctl remotes add <name> <url>
kontrctl remotes rm <name>
kontrctl remotes read <name>
kontrctl remotes select <name>
kontrctl remotes deselect <name> # Not implemented


Authentication commands


kontrctl login
kontrctl --help


kontrctl logout
kontrctl logout --help


Users resources management

kontrctl users --help
kontrctl users list
kontrctl users read <name>
kontrctl users delete <name>


Courses resources management

kontrctl courses --help
kontrctl courses list
kontrctl courses read <name>
kontrctl courses delete <name>
kontrctl courses select <name>
kontrctl courses deselect


Components resources management

kontrctl components --help
kontrctl components list
kontrctl components read <name>
kontrctl components delete <name>


Projects resources management

kontrctl projects --help
kontrctl projects list
kontrctl projects read <name>
kontrctl projects delete <name>
kontrctl projects select <name>
kontrctl projects deselect

# if selected course not provided:
kontrctl projects list -c <course_name>


Create new submission

kontrctl submit --help
kontrctl submit -c <course> -p <project> -t git -u <repo_url> -D <subdir>

# Example:
kontrctl submit -c TestCourse1 -p HW01 -t git -u "" -D <subdir>


Take a look at General Contribution Guide.

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

kontrctl-0.6.0.tar.gz (16.7 kB view hashes)

Uploaded source

Built Distribution

kontrctl-0.6.0-py3-none-any.whl (24.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page