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>

Model API

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

View Model

shaped view-model --model-name <MODEL_NAME>

Delete Model

shaped delete-model --model-name <MODEL_NAME>

Dataset API

Create Dataset

shaped create-dataset --file <PATH_TO_FILE>

List Datasets

shaped list-datasets

Dataset Insert

shaped dataset-insert --dataset-name <DATASET_NAME> --file <DATAFRAME_FILE> --type <FILE_TYPE> 

Delete dataset

shaped delete-dataset --dataset-name <DATASET_NAME>

Rank API

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

Uploaded Source

Built Distribution

shaped-0.13.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shaped-0.13.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for shaped-0.13.0.tar.gz
Algorithm Hash digest
SHA256 3b347e61fef305e0bea2a72eb5a7d486d2213d9743ee7f5c1dc142824f5722dd
MD5 7be5a0c1bf540c4a55e07b7479fb4185
BLAKE2b-256 82703afcf3986346e4516c9899866b1271398a603c9c4ab5ddecb0ce727d44c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shaped-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for shaped-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3a991442a65634fadcf7dfa6fadceadf1cd5f6753e1873488f69ff6756eab90
MD5 e7827708401e94ef2dc58662adfa2c46
BLAKE2b-256 56efb74a31f21f0c084e56baf63628359d15f40a0c9ad1b80607a5f0299118d2

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