Skip to main content

This utility helps you deploy your code as an API locally on your machine

Project description

roe-cli

PyPI version pypi supported versions

This utility helps you deploy your code as an API locally on your machine using Docker. It is a python based package that can be installed via pip.

Quickstart

  1. Install roe: pip install roe

  2. Deploy your package : roe deploy -l path/to/package/folder

    eg: roe deploy -l /Users/abcdef@ghi.com/Documents/git/myProject

    Note: you will be prompted to enter your docker hub username and password

You can find a sample project here.


- Deploy Package Arguments and Options

roe deploy -l path/to/package/folder

  • -l is for local deployment (only local is available for now).
  • -n is for specifying a package name. If left out, the folder name is chosen as package name.
  • -p is a port you specify for it to be spun up on(The valid range is 1024-65535). If left out, a port will be assigned.
  • -q is to deploy with no extra prompts to affirm redeployments and no webpage opening when finishing the deployment.

- Re-deploying a package.

roe deploy -l path/to/package/folder

If you used a custom name for your package, you will have to specify it with the package name (-n) flag just like you did initially.

e.g. roe deploy -l /Users/abcdef@ghi.com/Documents/git/myUpdatedProject or

roe deploy -l -n myCustomName /Users/abcdef@ghi.com/Documents/git/myUpdatedProject

Note: It will re-use the port from the first deployment.


Other commands:

Description Command
Verify package configuration roe verify -l path/to/package/folder
List packages deployed roe list -l
Stop a package ¹ roe stop -l -p myProject
Stop all packages roe stop -l --all
Start a package roe start -l myProject
Start all packages roe start -l --all
Undeploy a package roe undeploy -l -p myProject
Undeploy all packages roe undeploy -l --all
Begin ROE session ² ³ roe begin -l
End ROE session roe end -l

¹ If a model API associated with this package is running, you will be asked to enter 'Y' to stop it and proceed with deleting the package.

² A ROE Session begins automatically upon running roe deploy or roe list.

³ You can also point to a yaml file like this: roe begin -l -f /Users/myUser/Documents/docker-creds.yaml. Download a sample credential file here.

You can use the --help command in front of any command from within the CLI for help with options and arguments.
Eg: roe deploy --help

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

roe-1.0.3.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

roe-1.0.3-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file roe-1.0.3.tar.gz.

File metadata

  • Download URL: roe-1.0.3.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for roe-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b1d35915b7628818446d900fc6c1ce96628ffe6559d9ed335691c60aff5fa207
MD5 0e0e62eaa505a7db852f0268f5a7a053
BLAKE2b-256 4f7166075f0f0e09d28c6230ab26b8a43c19e1c4f409ac8b7b7a84ae830ba65f

See more details on using hashes here.

File details

Details for the file roe-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: roe-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for roe-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d0e12d176824ac86f9e63960b703055233b75aaf4a55bc13f00c1c08b2a87947
MD5 152ef7d6070cac61a8571f882c70ab83
BLAKE2b-256 54bf0d5a7b39ff430c598db77ee0af0a71d5ed82ee9539e688c55ba6e3c35f8e

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