Skip to main content

Developer tools for compmodels.org.

Project description

Comp-Developer-Toolkit

compdevkit tests your model's functions against the COMP criteria. If your functions pass the compdevkit tests, then you can be reasonably sure that the functions will work on COMPmodels.org.

Install compdevkit

pip install compdevkit

Set up the comp directory

cdk-init

Test your functions

from compdevkit import FunctionsTest

import matchups

def test_get_parameters():
    ta = FunctionsTest(
        model_parameters=matchups.get_inputs,
        validate_inputs=matchups.validate_inputs,
        run_model=matchups.get_matchup,
        ok_adjustment={"matchup": {"pitcher": [{"value": "Max Scherzer"}]}},
        bad_adjustment={"matchup": {"pitcher": [{"value": "Not a pitcher"}]}}
    )
    ta.test()

Project details


Download files

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

Source Distribution

compdevkit-1.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

compdevkit-1.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file compdevkit-1.1.0.tar.gz.

File metadata

  • Download URL: compdevkit-1.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for compdevkit-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9c0eebafdeddf3c5d73212ab83b1b45acf63dc1d35894072e8bb35c681b660e1
MD5 d5b78469f2fad0b8fc575c6a2a5a25fd
BLAKE2b-256 c4d39b0937e677f4223e0a3585518a1d699555582b0e1fb5cbbe91960bef455e

See more details on using hashes here.

File details

Details for the file compdevkit-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: compdevkit-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for compdevkit-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48ef479c567682f98760327bbc15b7d122b937aabbf19d22ae741ce00471dbaa
MD5 a5c12d100cb4d8f0841430b355f619e1
BLAKE2b-256 4cf4d7c51e0c917ec4c22c4998ecb24e37197459d71bc5e6261a8de0905ee7f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page