Skip to main content

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

shaped create-model --file <PATH_TO_FILE>

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


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.2.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

shaped-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file shaped-0.2.0.tar.gz.

File metadata

  • Download URL: shaped-0.2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for shaped-0.2.0.tar.gz
Algorithm Hash digest
SHA256 167d9dcdaac6338e1d17e8413a3be84c8ade5eba5af301caac0d9b8a6b460759
MD5 e22e54f1644ee887e2cae90b51b80d68
BLAKE2b-256 c8f6b2665b5ad45358cb553b736f62d1f11406b5d21a60f350619439492870a0

See more details on using hashes here.

File details

Details for the file shaped-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: shaped-0.2.0-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

Hashes for shaped-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0962f7e8ceb7c1f4989109d77b69360c74f6f82bd2ccb8efdab2d9875f141e8c
MD5 135d9ab75573eba5f07c3c1a5e750a2f
BLAKE2b-256 e759c77975a8129d815857c617ac861744d805b7dca3c26441a53c7246fa7672

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page