Metadata-Version: 2.1
Name: visioncapsule-tools
Version: 0.6.0
Summary: A tool to help users easily download VisionCapsules
License: BSD License
Author: Stephen Li
Author-email: stephen@aotu.ai
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: BSD License
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: PyYAML (>=6.0.2,<7.0.0)
Requires-Dist: beautifulsoup4 (>=4.9.3,<5.0.0)
Requires-Dist: brainframe_apps (>=0.5.1,<0.6.0)
Requires-Dist: lxml (>=4.6.3,<5.0.0)
Requires-Dist: python_i18n (>=0.3.9,<0.4.0)
Requires-Dist: questionary (>=2.0.1,<3.0.0)
Requires-Dist: requests (>=2.32.3,<3.0.0)
Requires-Dist: wget (>=3.2,<4.0)
Description-Content-Type: text/markdown

# visioncapsule-tools

Python CLI tool for downloading and managing VisionCapsules from the marketplace.

## Installation

```bash
pip install visioncapsule-tools
```

Or using pipx:

```bash
pip3 install pipx && python3 -m pipx ensurepath
pipx install visioncapsule-tools
```

## Usage

```bash
visioncapsule-tools capsule_downloader
```

This opens an interactive menu to:
- Browse available VisionCapsules
- Select capsules to download
- Manage local capsule inventory

## Sources and versions

The capsules are listed as in the VisionCapsules AI Marketplace of BrainFrame OS. Choose the source with `--source`:

| Source | What it lists |
| --- | --- |
| `aotu` (default) | AOTU Public: the capsules that AOTU publishes. |
| `routers` | Model Routers: the capsules that send detections to an AI model, in the cloud or on your own network. |
| `partner` | AOTU Private: for AOTU partners and customers. It needs a user name and a password. |

```bash
# The capsules of an older BrainFrame version (the latest by default), and the versions that exist
visioncapsule-tools capsule_downloader --version v0.31.8
visioncapsule-tools capsule_downloader --list-versions

# The model routers
visioncapsule-tools capsule_downloader --source routers --vcap-files claude_classifier_agent.cap

# AOTU Private: give the password in the environment, or type it at the prompt (it is never an argument)
export VISIONCAPSULES_PARTNER_PASSWORD='...'
visioncapsule-tools capsule_downloader --source partner --user your_name
```

The user name can also be set in `VISIONCAPSULES_PARTNER_USER`. The login is sent to the AOTU Private site only.

## Help

```bash
visioncapsule-tools capsule_downloader --help
```

