Metadata-Version: 2.5
Name: affable
Version: 0.3.0
Summary: Command-line client for affable, a tiny model hosting service.
Author: Yixuan Xu
License: MIT
Keywords: cli,hosting,machine-learning,models,onnx
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27
Requires-Dist: rich>=13
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# affable

Command-line client for **affable**, a small model hosting service.
Push ONNX models (up to 5M parameters) to your own private repo.

```bash
pip install affable

affable login                      # paste an API key from the dashboard
affable push ./my-model            # a folder containing one .onnx (+ optional extras)
affable push model.onnx -n tiny -m "first cut"
affable push ./my-model --public --open-weights   # list it, and let anyone download it
affable run affable/extra-a photo.jpg   # run a hosted model on an image
affable models                     # list your repos
affable pull you/tiny              # download the latest version
affable search detector            # browse public models (no login needed)
affable                            # on its own: who you are, and every command with an example
```

Every command prints in the same style: tables with visibility marks (`● open`, `◐ public`, `○ private`), confidence bars for `run`, and a clear `✗` line with a hint when something goes wrong.

## What gets pushed

A push is one **`.onnx`** file at the top level, plus any companion files
(`*.onnx_data` for external weights, `config.json`, `tokenizer.json`, `README.md`, ...).
Parameters are counted locally before upload and re-verified by the server.
Every push creates a new numbered version (`v1`, `v2`, ...).

## Configuration

Credentials are stored in `~/.config/affable/config.json` (mode 0600).
Override with `AFFABLE_HOST` and `AFFABLE_API_KEY`, or `affable login --host URL`.
