Kontrctl - Kontr portal CLI client
kontrctl - Kontr Portal management CLI Tool
Setup
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 https://gitlab.fi.muni.cz/grp-kontr2/kontrctl
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 https://kontr.fi.muni.cz
kontrctl remotes select default
kontrctl login # Provide username and password
Remotes
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
Auth
Authentication commands
Login
kontrctl login
kontrctl --help
Logout
kontrctl logout
kontrctl logout --help
Users
Users resources management
kontrctl users --help
kontrctl users list
kontrctl users read <name>
kontrctl users delete <name>
Courses:
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:
Components resources management
kontrctl components --help
kontrctl components list
kontrctl components read <name>
kontrctl components delete <name>
Projects:
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>
Submit
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 "https://github.com/pestanko/example-repo" -D <subdir>
Contributing
Take a look at General Contribution Guide.
Metadata
Release files for kontrctl 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kontrctl-0.6.0.tar.gz | 16.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kontrctl-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.1 kB
Release files / kontrctl-0.6.0.tar.gz
| Download URL | kontrctl-0.6.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c54518316ae7dd4707e3e278a172705f637ace92f85c47401f7c71dfbdf71eb
|
|
BLAKE2b-256 checksum How to use checksums |
c02c75598b5d83c5709d10e2d5034c7bf8488752abcaa1abecc4592b19388d62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Linux/5.14.15-arch1-1
|
Release files / kontrctl-0.6.0-py3-none-any.whl
| Download URL | kontrctl-0.6.0-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b19b1e2c7f72d40fd3849529de7b11596e4c0b398c0ac81b5cbfd85a9a260637
|
|
BLAKE2b-256 checksum How to use checksums |
d8117b33ecedbbdd9a27dbd0bb7c1e92f05444625d12552fdbc7b1df59361a36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Linux/5.14.15-arch1-1
|
Security for kontrctl 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.