Skip to main content

ClearML config profile manager

Project description

clenv - Unofficial ClearML CLI helper

Pre-requisites

  • clearml installed, please refer to ClearML installation guide for more details.
  • Run clearml-init and initialize your first ever config file.

Installation

pip install clenv

Usage

Subcommand config

Note: All config files must be in the format of clearml-<profile_name>.conf

List all config profiles

clenv config list

Create a new config profile

clenv config create <profile_name>

Delete a config profile

clenv config del <profile_name>

Switch to a config profile

clenv config checkout <profile_name>

Reinitialize the api section of a config

clenv config reinit <profile_name>
# Please paste your multi-line configuration and press Enter:

Then paste your multi-line configuration generated through clearML server.

Subcommand user

Generate user/password hocon config

clenv user genpass <user_name>

Subcommand task

Note: This command only support git repos for now. The project name of the task created on the ClearML server will be the same as the git repo name. So please make sure you have a meaningful, easy to read git repo name.

Execute a task remotely on ClearML server

clenv task exec

It will prompt you to select an available queue, correct task type, your entrypoint script path and input the task name.

clenv-task-exec-1

After inputting all the required configs, it will ask you whether to save the configs. By typing 'y', the config will be saved. When you execute clenv task exec next time in the same repo, it will load the saved configs and skip the config input process. However, it will still ask you for confirmation before submitting the task.

Ignore the saved run configs when starting a new execution

If you want to ignore the old run configs and freshly start a new execution, you can run:

clenv task exec -N

The -N option will tell clenv to ignore the config file you have, and prompt you to input all the configs again.

An alternative way of doing that is to delete the config file manually, which is located at ./.clenv/task_template.json. Then running clenv task exec again will start a fresh execution as well.

Examples

Create a new clearml config profile for privately hosted clearml server

Initialize profiles

$ clenv config list
# Input a name for your current profile

Create a new profile

$ clenv config create brainco

Reinit the profile credentials

$ clenv config reinit brainco

Checkout the new profile

$ clenv config checkout brainco

Roadmap

  • Config management
    • Config profile management
    • Support custom config file path
  • Privately hosted server management
    • BCrypt password generation (Feature to be deprecated when more sophisticated user management is implemented)
    • Server side utils and config management
    • ClearML Agent side utils and config management
  • Remote task management
    • A user friendly remote task execution wizard

Disclaimer & License

This project is not affiliated with Allegro AI, Inc. in any way. It is an independent and unofficial software. It's licensed under the MIT license.

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

clenv-0.0.8.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clenv-0.0.8-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file clenv-0.0.8.tar.gz.

File metadata

  • Download URL: clenv-0.0.8.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.7

File hashes

Hashes for clenv-0.0.8.tar.gz
Algorithm Hash digest
SHA256 81e4dfd72ac2779ebf25f84f6f6200d56416a7feef1615beed2db740b27fb394
MD5 01c93d48b680368ac34f6a4b445d1b75
BLAKE2b-256 cd2957c733e9d936c3f5bb7517b6a9e970dcaedb80a2aa7e3786b5e06aaea16e

See more details on using hashes here.

File details

Details for the file clenv-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: clenv-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.7

File hashes

Hashes for clenv-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 79f5431c4180631720a4ac3727019e540c70dbd523bb243169b41def80d41725
MD5 94bc713afc44232ce4add2cbea49bf7b
BLAKE2b-256 be294d4e2dcf8c99f85bfaded473f6b3bf86ef11a14080f99b976b9c8e8483e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page