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.2.2.tar.gz
.
File metadata
- Download URL: codeflare-sdk-0.2.2.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.6.8 Linux/4.18.0-372.19.1.el8_6.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27200695d449aeaf6d4b1bd94236885158dbca986b62c3afafbf975611fd16a4 |
|
MD5 | 8ead78bc0e972ebb5c4e82ec1c7c433e |
|
BLAKE2b-256 | 2d685abbc9075a8638a922a009849cb88a04d9e6df0693bc6dcbbef2a9766814 |
File details
Details for the file codeflare_sdk-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: codeflare_sdk-0.2.2-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.6.8 Linux/4.18.0-372.19.1.el8_6.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40936e24200b134242fd9a207c7e1376d682cb9001d747709e7d9c796ca9ad1 |
|
MD5 | 7dc3e603d6dbb1103ee7cb555da5d044 |
|
BLAKE2b-256 | 343b18891b8511c8122ac777df1b5741307ccb51829f952776c4a0cbe1cb6e15 |