About Anaconda Help Download Anaconda

anaconda-cloud / packages / anaconda-cli-base
Standard Python conda
0.3.0

A base CLI entrypoint supporting Anaconda CLI plugins

  • 2127 total downloads
  • Last upload: 7 days and 37 minutes ago

Installers

  • noarch v0.3.0

pip install

To install this package run one of the following:
pip install -i https://pypi.anaconda.org/anaconda-cloud/simple anaconda-cli-base
pip install -i https://pypi.anaconda.org/anaconda-cloud/label/dev/simple anaconda-cli-base

conda install

To install this package run one of the following:
conda install anaconda-cloud::anaconda-cli-base
conda install anaconda-cloud/label/dev::anaconda-cli-base

Description

anaconda-cli-base

A base CLI entrypoint supporting Anaconda CLI plugins

Registering plugins

Subcommands can be registered as follows:

# In pyproject.toml

[project.entry-points."anaconda_cli.subcommand"]
auth = "anaconda_cloud_auth.cli:app"

In the example above:

  • "anaconda_cloud_cli.subcommand" is the required string to use for registration. The quotes are important.
  • auth is the name of the new subcommand, i.e. anaconda auth
  • anaconda_cloud_auth.cli:app signifies the object named app in the anaconda_cloud_auth.cli module is the entry point for the subcommand.

Setup for development

Ensure you have conda installed. Then run:

make setup

Run the unit tests

make test

Run the unit tests across isolated environments with tox

make tox

© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.1) Legal | Privacy Policy