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.4.1.tar.gz
.
File metadata
- Download URL: codeflare_sdk-0.4.1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.13 Linux/4.18.0-425.10.1.el8_7.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6c4b6fe299234a4b4ff6634b0439511a061e20c498dfa3702ebc177e7298c4 |
|
MD5 | 7b25eb9218ef21bcc15085497358131f |
|
BLAKE2b-256 | d91ef77fbbf921df674aa0c2efc4fc752ca1597561961fe9505174a09eaefc39 |
File details
Details for the file codeflare_sdk-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: codeflare_sdk-0.4.1-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.8.13 Linux/4.18.0-425.10.1.el8_7.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd9fb537f089d08f8fc9251277390b8bd56d1b5a76d4c6dc6e87a290fbbf3516 |
|
MD5 | f1b571917c400a4481df98f741ce3dc5 |
|
BLAKE2b-256 | f6a04c919dc545408ffbb155f130e764d8300597a8926a9971d81fc694478456 |