Tutor LTS management plugin
Project description
This is a plugin for Tutor LTS customers. Running this plugin requires a valid license key. An LTS subscription grants unlimited online Tutor and Open edX support, and access to a selection of premium plugins.
Installation
The Tutor LTS plugin requires a working installation of Tutor. To install Tutor, please check the official installation instructions.
Then, install and enable the plugin with:
pip install tutor-lts tutor plugins enable lts
Quickstart
Obtain a Tutor LTS license at https://overhang.io/tutor/lts. Then, find your license ID and run:
tutor lts license save <yourlicenseid>
Your license can only be used on a limited number of computers. Any activated computer can be deactivated at any time, but beware: you will not be able to re-activate it later.
To activate your license, run:
tutor lts users activate
You can then install Tutor LTS plugins by running tutor lts install. For instance:
tutor lts install tutor-monitor
The plugin should now appear in the plugin list:
tutor plugins list
Note that to start using LTS plugins, you will have to install Tutor from source, and not by downloading the Tutor binary. You will also need to install pip for Python 3+. To do so, follow the official instructions.
Once a plugin has been installed, you need to enable it to start using it. For instance:
tutor plugins enable monitor tutor local quickstart
How-to guides
Storing the Tutor LTS license in a different location
By default, the license file is stored in the ~/.config/tutorlts/license.json file on Linux, and ~/Library/Application Support/tutorlts/license.json on Mac OS. To specify a different location, use the --license-path option:
tutor lts --license-path=/your/custom/path/license.json license ...
Alternatively, define the following environment variable:
export TUTOR_LTS_LICENSE_PATH=/your/custom/path/license.json tutor lts license ...
Managing ephemeral machines
You may want to deactivate the license associated to a production machine that was terminated. This is frequent in cloud environments. It is possible to do so by setting specific properties to this machine. For instance, on the production machine, before it was terminated, run:
tutor lts users activate --name=myinstance
Then, after it was terminated, fetch its id from another machine with:
tutor lts users list --name=myinstance
Use this ID to deactivate it:
tutor lts users deactivate --id=<myinstanceid>
Or in a single command, with no confirmation prompt:
tutor lts users deactivate --yes \ --id=$(tutor lts users list --name=myinstance --format="{id}")
License
All rights reserved to SASU NULI NULI.
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 Distribution
File details
Details for the file tutor-lts-10.0.3.tar.gz
.
File metadata
- Download URL: tutor-lts-10.0.3.tar.gz
- Upload date:
- Size: 72.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e13b6c052973ec74b5fb0d3ddf17cf26a61c7cc832171a69cb11fa2af79e77e7 |
|
MD5 | 569c2224a226086e7ccb3828e824890c |
|
BLAKE2b-256 | 8a0481ca1667914dcfa0baf18a46891169cf55b512f16b75f0903aa982402663 |