Python SDK for codeflare client
Project description
Codeflare-SDK
An intuitive, easy-to-use python interface for batch resource requesting, access, job submission, and observation. Simplifying the developer's life while enabling access to high-performance compute resources, either in the cloud or on-prem.
Tutorial and basics walkthrough coming soon!
Full documentation can be found here
Installation
Can be installed via pip
: pip install codeflare-sdk
Development
For testing, make sure to have installed:
pytest
,pytest-mock
(can both be installed withpip
)- The remaining dependencies located in
requirements.txt
- To run the unit tests, run
pytest -v tests/unit_test.py
) - Any new test functions/scripts can be added into the
tests
folder
NOTE: Functional tests coming soon, will live in tests/func_test.py
For checking code coverage while testing:
- Start by installing
coverage
(can be done viapip
) - Now instead when testing run
coverage run -m --source=src pytest tests/unit_test.py
- To then view a code coverage report w/ missing lines, run
coverage report -m
For formatting:
- Currently using black v22.3.0 for format checking
- To install, run
pip install black==22.3.0
- To check file formatting, in top-level dir run
black --check .
- To auto-reformat all files, remove the
--check
flag - To reformat an individual file, run
black <filename>
- To auto-reformat all files, remove the
To build the python package:
- If poetry is not installed:
pip install poetry
poetry build
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
File details
Details for the file codeflare-sdk-0.3.0.tar.gz
.
File metadata
- Download URL: codeflare-sdk-0.3.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.6.8 Linux/4.18.0-425.10.1.el8_7.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c120da615effdb6652df2d7445ac5185b00c0fb7dfb79455e4c982edae4ead53 |
|
MD5 | b05da4562298f8b3a364112fe5b4d13a |
|
BLAKE2b-256 | 740711d55b348b7d9e13fd2319ac799af962f80148ebe7b4bcdc14a9b168e679 |
File details
Details for the file codeflare_sdk-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: codeflare_sdk-0.3.0-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.6.8 Linux/4.18.0-425.10.1.el8_7.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0888224862c191f889ed45738be4a42aa9b1655ff5f2e536d22189ee11b8e1 |
|
MD5 | 097e74cc9af3e8f5670b6ee84bd89644 |
|
BLAKE2b-256 | cff1d539d85a1b35d8be03e65fd63f4b764c7cb2ee83b0893ef11525b4ebb9d2 |