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>
Create Model (File)
shaped create-model --file <PATH_TO_FILE>
Create Model (STDIN)
cat $(PATH_TO_FILE) | shaped create-model
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.3.0.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file shaped-0.3.0.tar.gz
.
File metadata
- Download URL: shaped-0.3.0.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 | d3958519a7e268cd1abe1c142e90d7088ea3bda9824c8076cc73f4756eb95fd0 |
|
MD5 | 59b14b25206b95518b7c27ac4a6157fd |
|
BLAKE2b-256 | 8670658881e285c4a0ae26ef104a55af64c45ad4633a7b0875cbd1f3e5c3d1e6 |
File details
Details for the file shaped-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: shaped-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.0 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 | 155d390944d73a8520919302a0ad8f0fa3e0d45871dc93aa4fe9a895f592f91f |
|
MD5 | 746350f75b6bafd99f50c457d79b594a |
|
BLAKE2b-256 | 5147f0fe8d8ce4575605a0d8112d6b54f6a3b1b6aa3d70d73719aa624350c53c |