No project description provided
Project description
centml-python-client
Installation
To install without cloning, run the following command:
pip install git+https://github.com/CentML/centml-python-client.git@main
Alternatively to build from source, clone this repo then inside the project's base directory, run the following command:
pip install .
Un-installation
To uninstall centml, simply do:
pip uninstall centml
CLI
Once installed, use the centml CLI tool with the following command:
centml
If you want tab completion, run
source scripts/completions/completion.<shell language>
Shell language can be: bash, zsh, fish
(Hint: add source /path/to/completions/completion.<shell language> to your ~/.bashrc, ~/.zshrc or ~/.config/fish/completions/centml.fish)
Tests
To run tests, first install required packages:
pip install -r requirements-dev.txt
cd tests
When running on a local machine, it is recommended to run tests with the following command. This skips tests that require a GPU.
pytest --sanity
To run all the tests, use:
pytest
Common Issues
-
SSLcertificate onMacOSSometimes, you will see issues when using command like
centml cluster [CMD], where the output might look like:File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.centml.com', port=443): Max retries exceeded with url: /deployments (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
Solution: To fix this issue, navigate to your
pythoninstallation directory and run theInstall Certificates.commandfile located there.For example, if you are using
python3.10, the file path would be:/Applications/Python 3.10/Install Certificates.command
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file centml-0.5.0.tar.gz.
File metadata
- Download URL: centml-0.5.0.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f64bad3a6633189a9209f5f05d6057e6b39f277414fc754c666f73b267b050
|
|
| MD5 |
e8c52f8740b66ff0325f81865e3c7ea8
|
|
| BLAKE2b-256 |
6f546c343fe43fb5defbceb1f3707b9b7b912150cc05d696a9395c026d0e71d7
|
Provenance
The following attestation bundles were made for centml-0.5.0.tar.gz:
Publisher:
publish.yml on CentML/centml-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
centml-0.5.0.tar.gz -
Subject digest:
70f64bad3a6633189a9209f5f05d6057e6b39f277414fc754c666f73b267b050 - Sigstore transparency entry: 1595656237
- Sigstore integration time:
-
Permalink:
CentML/centml-python-client@075ead67e4166230711e43bef4ae590a3538ba2c -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/CentML
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@075ead67e4166230711e43bef4ae590a3538ba2c -
Trigger Event:
release
-
Statement type:
File details
Details for the file centml-0.5.0-py3-none-any.whl.
File metadata
- Download URL: centml-0.5.0-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5431fd27511768553e1017360e8d652e6a7e59fe15629f9f1497e172b88b80ae
|
|
| MD5 |
0c15163d82d9a8d064dd859229434624
|
|
| BLAKE2b-256 |
ebb1c866c64cd4868624e2ab5b113e28f5879ff8be5ae1270cd7b3297664a1a6
|
Provenance
The following attestation bundles were made for centml-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on CentML/centml-python-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
centml-0.5.0-py3-none-any.whl -
Subject digest:
5431fd27511768553e1017360e8d652e6a7e59fe15629f9f1497e172b88b80ae - Sigstore transparency entry: 1595656340
- Sigstore integration time:
-
Permalink:
CentML/centml-python-client@075ead67e4166230711e43bef4ae590a3538ba2c -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/CentML
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@075ead67e4166230711e43bef4ae590a3538ba2c -
Trigger Event:
release
-
Statement type: