Skip to main content

No project description provided

Project description

Cerebrium CLI

Cerebrium is the Python package built for use with the Cerebrium platform, which allows you to deploy your machine learning models as a REST API with a single line of code.

For usage consult the documentation. The repo for the documentation can be found here.

Releases

The CLI follows semver. Commits should be tagged accordingly:

allowed_types = [ "build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test" ] minor_types = ["feat"] patch_types = ["fix", "perf"]

Testing:

Testing in this repository is performed using pytest.

All tests for the cli-package are located in tests/ in the root directory of this repository.

To run tests, run the following command in the root directory:

  1. export PYTHONPATH="${PYTHONPATH}:${pwd}"
  2. poetry run pytest tests/unit

This will run all tests in the tests/ directory.

Notes:

  • If you want to run a specific test, you can do so by providing the path to the test file as an argument to pytest. For example, to run the test in tests/unit/test_cli.py, you can run the following command:
poetry run pytest tests/unit/test_cli.py
  • If you would like to see all printed output from the tests, you can add the -s flag to the pytest command. For example:
poetry run pytest -s tests/unit/test_cli.py
  • When writing tests:
    • Ensure there are at least one positive and one negative test.
    • Please ensure that the test is isolated from the rest of the system. This means that the test should not rely on any external resources or the state of the system.
    • All CLI tests should be run-able in a temporary directory and there should be no side effects.

How to run locally

poetry install
poetry shell
export CEREBRIUM_ENV=dev
which cerebrium

this should point to cerebrium-cli/.venv/bin/cerebrium

How to run PyRight Linter

poetry run pyright

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cerebrium-1.31.0-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

Details for the file cerebrium-1.31.0-py3-none-any.whl.

File metadata

  • Download URL: cerebrium-1.31.0-py3-none-any.whl
  • Upload date:
  • Size: 53.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for cerebrium-1.31.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7326b7f7a2aa7b9afaae140aff40a60d62df3d11cd4710105b3c80f8c1ba9e1d
MD5 d30c52ad51f1f7b1230cc4cf1964bf61
BLAKE2b-256 f2f0f5c2d921cc3ae33f0ef1ffff34a82299d1bed660f995c7c8cd25f0bff8cc

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