Skip to main content

Developer tools for

Project description

Compute Studio Kit

cs-kit tests your model's functions against the Compute Studio criteria. If your functions pass the cs-kit tests, then you can be reasonably sure that the functions will work on

Compute Studio Kit also provides a helper command for retrieving your Compute Studio API token.

Install cs-kit

pip install cs-kit

Set up the cs-config directory

$ csk-init
$ tree cs-config/
├── cs_config
│   ├──
│   ├──
│   └── tests
│       ├──
│       └──

Write your functions in cs-config/cs_config/

# Write or import your Compute Studio functions here.

def get_version():

def get_inputs(meta_param_dict):

def validate_inputs(meta_param_dict, adjustment, errors_warnings):

def run_model(meta_param_dict, adjustment):

Test your functions in cs-config/cs_config/tests/

from cs_kit import CoreTestFunctions

from cs_config import functions

class TestFunctions1(CoreTestFunctions):
    get_version = functions.get_version
    get_inputs = functions.get_inputs
    validate_inputs = functions.validate_inputs
    run_model = functions.run_model
    ok_adjustment={"matchup": {"pitcher": [{"value": "Max Scherzer"}]}}
    bad_adjustment={"matchup": {"pitcher": [{"value": "Not a pitcher"}]}}

Run your cs-config tests

py.test cs-config

Write your installation instructions in cs-config/

conda install your-project

Get your Compute Studio API token

$ csk-token --username myuser --password mypass
Token: your-token-here

Run the compute-studio-kit tests

py.test cs_kit -v

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cs-kit, version 1.13.0
Filename, size File type Python version Upload date Hashes
Filename, size cs_kit-1.13.0-py3-none-any.whl (13.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cs-kit-1.13.0.tar.gz (10.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page