Coder Social home page Coder Social logo

drfranknlee / codeflare-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from project-codeflare/codeflare-sdk

0.0 0.0 0.0 179 KB

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.

License: Apache License 2.0

Python 25.13% Jupyter Notebook 74.68% Dockerfile 0.19%

codeflare-sdk's Introduction

Codeflare-SDK

Python application coverage badge

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 with pip)
  • 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 via pip)
  • 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 build the python package:

  • If poetry is not installed: pip install poetry
  • poetry build

codeflare-sdk's People

Contributors

maxusmusti avatar michaelclifford avatar atinsood avatar github-actions[bot] avatar chcost avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.