Alectio-CLI 🚀 🚀
Alectio-cli is Alectio's's official command-line interface (CLI)wrapper. It allows you to create projects, experiments and do hybrid labeling tasks.
Configuration
Setup
These setup instructions are for CLI usage only.
We recommend installing alectiocli in your virtualenv rather than doing a global installation so you don't run into unexpected behavior with mismatching versions.
pip insall alectiocli
Authentication
For usage of cli, you first need to authenticate with Alectio's server.
alectio-cli --login
This will redirect you to Alectio's platform and once you login, it will generate a authentication token, which you need to copy and paste it on the command line.
If you wish to force login or refresh token after the authentication is done, use:
alectio-cli --login --refresh
Usage
If you wish to get more information about any command within alectio-cli, you can execute alectio-cli --help command.
Common alectio-cli --help Options
login: Login for token authenticationproject: A sub-app which handles all project related tasksexperiment: A sub-app which handles all experiment related tasks
Common alectio-cli project --help Options
create: Create an alectio projectlist: List all the projects of the userdelete: Delete a projecthybrid-labeling:
Projection Creation:
alectio-cli project create [OPTIONS] YAML_FILE LABEL_FILE
A folder Alectio_cli_sample_yamls will be generated which will contain sample YAML files for doing various tasks like:
- Yaml file for creating an experiment
- Yaml file for manual curation experiment
- Yaml file for Hybrid Labeling Task
Sample YAML FILE for creating project
name: "Sample Project"
description: "test "
type: "Image Classification"
alectio-dataset: "false"
test_len: 0
s3_bucket:
data_name:
alectio_dir:
pre_loaded_model:
project_type: "curation"
data_format: "image"
docker_url:
premise: "true"
train_len: 10000
dataset_source: "on-prem"
labels: True
List Projects:
alectio-cli project list
Project Deletion:
alectio-cli project delete <proj_id>
Hybrid Labeling Task:
alectio-cli project hybrid-labeling [OPTIONS] YAML_FILE
Experiment
Common alectio-cli experiment --help Options
create: Create an alectio experimentrun: Runs an alectio experiment
Experiment Creation
alectio-cli experiment create [OPTIONS] YAML_FILE
Sample YAML FILE for creating project
project_id: '22977034a12b11ecaf91cbe75e9b38c0'
name: 'Test Experiment'
n_records: 100
limits: False
qs: [] #Empty for auto_al,ml_driven. To be filled for manual curation.
seed: 120
labeling_type: pre_labeled
is_sdk_setup: False
is_curr_fully_labeled: False
assoc_labeling_task_id: ''
Run Experiment
alectio-cli experiment run [OPTIONS] PYTHON_FILE EXPERIMENT_FILE
ℹ️ Note that this cli is still in development phase, instability might occur.
Future
We are continually expanding and improving the offerings of this application. Some interactions may change over time, but we will do our best to retain backwards compatibility.
Metadata
Release files for alectiocli 0.1.4
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 | Actions |
|---|---|---|---|---|
| AlectioCLI-0.1.4.tar.gz | 14.3 kB | Without provenance | Details for AlectioCLI-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AlectioCLI-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for AlectioCLI-0.1.4-py3-none-any.whl |
Total release size: 33.0 kB
Release files / AlectioCLI-0.1.4.tar.gz
| Download URL | AlectioCLI-0.1.4.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd296bb4dcf4d80115292500b35c1a85228b8a5dbe1a475665920bea749f879e
|
|
BLAKE2b-256 checksum How to use checksums |
29d24e3727079d894f3fe021da0e155c3af354c5156dfecf5825abced81cc8ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Linux/5.13.0-41-generic
|
Release files / AlectioCLI-0.1.4-py3-none-any.whl
| Download URL | AlectioCLI-0.1.4-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43cf146c1c518b6e598f965de2e58d17e911a848d31e2635f7f8e4c75691ccd1
|
|
BLAKE2b-256 checksum How to use checksums |
0a4313cb95c599bc8cd8d0601545c94666f50890f5382683f50b60bd6fad5423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Linux/5.13.0-41-generic
|
Security for alectiocli 0.1.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.