Metadata-Version: 2.1
Name: shaped
Version: 0.1.0
Summary: A CLI tool for interacting with the Shaped API.
Home-page: https://github.com/shaped-ai/shaped-cli
Author: Shaped Team
Author-email: support@shaped.ai
Keywords: shaped-ai
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Shaped CLI

CLI for interactions with the Shaped API.


## Installing the Shaped CLI

```
pip install shaped
```

## Initialize
```
shaped init --api-key <API_KEY> --env prod
```

## Create Model
```
shaped create-model --file <PATH_TO_FILE> --env prod
```

## List Models
```
shaped list-models
```

## Model Detail
```
shaped model-details --model-name <MODEL_NAME>
```

## Delete Model
```
shaped delete-model --model-name <MODEL_NAME>
```

## Rank
```
shaped rank --model-name <MODEL_NAME> --user-id <USER_ID>
```

## Similar Items
```
shaped similar --model-name <MODEL_NAME> --item-id <ITEM_ID>
```

## Similar Users
```
shaped similar --model-name <MODEL_NAME> --user-id <USER_ID>
```

# Development

## Installing the Shaped CLI from Test PyPI

Upon all pushes to main branch, a new version of the CLI is published to Test PyPI. To install the latest version of the CLI from Test PyPI, run the following commands:

```bash
conda create -n cli-dev python=3.9
conda activate cli-dev
export PACKAGE_VERSION={} # Specify the version you want to install
pip install --extra-index-url https://test.pypi.org/simple/ shaped-cli==$PACKAGE_VERSION
```

## Releasing a new CLI version to PyPI

To release a new version of the CLI to PyPI, open a PR changing the version of the package in `setup.py`, following [Semantic Versioning](https://semver.org) principles, e.g. `0.1.1`.

CircleCI will generate an approval prompt when this branch is merged to main, and upon approval will publish to PyPI.
