A CLI tool for interacting with the Shaped API.
Project description
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:
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 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shaped-0.1.1.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file shaped-0.1.1.tar.gz
.
File metadata
- Download URL: shaped-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b228c76b0df18b0c66002e225107ca52a29123f7220eb1f11d53c2755af96fc |
|
MD5 | b1c35e409614ac99eb273bb3fb00eca0 |
|
BLAKE2b-256 | 80a3496f9dcaa7fc1c9fabbc8f02ffe3bb3f10a6c6291572b2838b219e54bf6d |
File details
Details for the file shaped-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: shaped-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 643d9da61a743cf7f604f2e74664ce159ea26aa32a75a90ca27acf2b9867353e |
|
MD5 | bef3192dba98b2d79651808170297a38 |
|
BLAKE2b-256 | d7aeb0d31aa0738740feccf3b9bbd628580beeb9b962f8c2941d1280923df6e6 |