Metadata-Version: 2.4
Name: anaconda-client
Version: 1.15.0
Summary: Client library and CLI plugin for anaconda.org
Project-URL: source, https://github.com/anaconda/anaconda-client
License: BSD-3-Clause
License-File: LICENSE.md
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Requires-Python: >=3.10
Requires-Dist: anaconda-auth>=0.11.0
Requires-Dist: anaconda-cli-base>=0.5.3
Requires-Dist: conda-package-handling>=1.7.3
Requires-Dist: defusedxml>=0.7.1
Requires-Dist: nbformat>=4.4.0
Requires-Dist: platformdirs<5.0,>=3.10.0
Requires-Dist: python-dateutil>=2.6.1
Requires-Dist: pytz>=2021.3
Requires-Dist: pyyaml>=3.12
Requires-Dist: requests-toolbelt>=0.9.1
Requires-Dist: requests>=2.20.0
Requires-Dist: setuptools>=58.0.4
Requires-Dist: tqdm>=4.56.0
Requires-Dist: urllib3>=1.26.4
Provides-Extra: dev
Requires-Dist: bandit~=1.9.3; extra == 'dev'
Requires-Dist: build~=1.5.0; extra == 'dev'
Requires-Dist: coverage~=7.15.2; extra == 'dev'
Requires-Dist: freezegun~=1.5.2; extra == 'dev'
Requires-Dist: jinja2~=3.1.2; extra == 'dev'
Requires-Dist: mypy~=2.3.0; extra == 'dev'
Requires-Dist: pytest-cov~=7.1.0; extra == 'dev'
Requires-Dist: pytest-html~=4.2.0; extra == 'dev'
Requires-Dist: pytest-mock~=3.15.1; extra == 'dev'
Requires-Dist: pytest~=9.1.0; extra == 'dev'
Requires-Dist: setuptools~=83.0.0; extra == 'dev'
Requires-Dist: types-python-dateutil~=2.9.0.20250516; extra == 'dev'
Requires-Dist: types-pytz~=2026.3.1.20260727; extra == 'dev'
Requires-Dist: types-pyyaml~=6.0.12.9; extra == 'dev'
Requires-Dist: types-requests~=2.33.0.20260518; extra == 'dev'
Requires-Dist: types-tqdm~=4.69.0.20260724; extra == 'dev'
Requires-Dist: typing-extensions~=4.16.0; extra == 'dev'
Provides-Extra: full
Requires-Dist: pillow>=10.2.0; extra == 'full'
Description-Content-Type: text/markdown

# Anaconda Client

This is a command line client that provides an interface to [anaconda.org](https://anaconda.org/).

## Quickstart:

First, create an account on [anaconda.org](https://anaconda.org/), if you may still don't have one.

Then, install `anaconda-client` into your conda environment:

```bash
conda install anaconda-client
```

Log into your account:

```bash
anaconda login
```

Test your login wit the `whoami` command:

```bash
anaconda whoami
```

For a complete tutorial on building and uploading Conda packages to [anaconda.org](https://anaconda.org) visit the [documentation page](https://docs.anaconda.org/anacondaorg/).

For channel notices (conda user-facing messages), see [doc/channel_notices.md](doc/channel_notices.md).

## Local development

Setup conda environment:

```bash
make init
```

Activate development environment:

```bash
conda activate anaconda_client
```

Run anaconda-client commands:

```bash
python -m binstar_client.scripts.cli --version
```

### Pre-commit Setup in Local

Pre-commit also runs in the [GitHub workflow](.github/workflows/pre-commit.yaml) on pull requests. Installing it locally is recommended so you catch formatting and lint issues before pushing, and avoid back-and-forth commits when CI auto-fixes files. Set this up **from the development environment** (`./env`, Python 3.11) — some hooks require Python ≥ 3.10.

```bash
conda activate ./env        # Need not run if anaconda-client env is already activated
pip install pre-commit
pre-commit install          # wire git hooks to this env's Python
pre-commit install-hooks    # download hook environments
```

After `pre-commit install`, hooks run automatically on each `git commit` — you do not need to run anything extra before pushing. Optionally, `make pre-commit` runs all hooks across the entire repo (useful before opening a PR).
If commits still fail with a Python 3.9 error, the git hook was likely installed from a different environment (for example base Miniconda). Re-install from `./env`:

```bash
conda activate ./env    # Need not run if anaconda-client env is already activated
pre-commit clean
pre-commit install
pre-commit install-hooks
```
and run `git commit` to commit all changes.
