Skip to main content

ComputeX CLI tool

Project description

cx

The ComputeX Python CLI lets you interact with ComputeX REST APIs and push images for your models to the ComputeX container registry.

Installation

Requirements

  • Python >= 3.8

Run pip install cx.

Command Line Interface

At any time, you can utilize the --help flag with any command or subcommand:

$ cx --help
Usage: cx [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  login
  ...

Logging In

$ cx login --username {username} --password {password}

Building an Image

WIP

Pushing an Image

WIP

Development

To test locally, run the following:

$ source setup_env.sh
$ python -m cxcli.cli

Publishing to PyPI

The process for publishing to PyPI works as follows:

  • Pull down the main branch.
  • Tag it with the current version as specified in pyproject.toml.
  • Push that tag to the repo, which...
  • Triggers a GitHub Action workflow (pypi.yml) that pushes it to PyPI.

This can all be done simply by running the following make command:

make pypi-publish 

Assuming you have the ability to push a tag to the repo, you'll be able to publish to PyPI.

WARNING: if you do not specify a new version in pyproject.toml, the GHA workflow will fail due to an existing package being on 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

computex_cli-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

computex_cli-0.2.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for computex_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b497d2f2d2adc840c743663e315158a3d7bfbbfcf648a5b1d6af18e2d48b8a83
MD5 255dadfd48c3e139a02cd199d9eb8f95
BLAKE2b-256 c310b40caa8003a868a9cf53409500a44db79749ea7e1cc6e53cdc9cce914970

See more details on using hashes here.

File details

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

File metadata

  • Download URL: computex_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for computex_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5781bebc33d91cbb1a60a6a4187a3ebb4ebaa40b84b177707c8fa7252a1ff4
MD5 8880d026e5565a8fc64aae8d256d1818
BLAKE2b-256 f0ef5f667ab2df99c13dab4cfb0806814910962407089a20523ceda48d3f0ef9

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