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.

Example

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()

Installation

pip install git+https://github.com/comp-org/Developer-Tools.git@master

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.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

compdevkit-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: compdevkit-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 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.0.0.tar.gz
Algorithm Hash digest
SHA256 784cbf11721e349be19caac2229ac2628e3a806d6eb8282ad5d713e52486f226
MD5 ca1b20cd8232b9a70810268ca3d7f84c
BLAKE2b-256 a7e19ea351b3328def51c58d8daabafa8ad2801b3ae1d90e4e334537d9af1411

See more details on using hashes here.

File details

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

File metadata

  • Download URL: compdevkit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a699553dd7bb2e2185cf5238cf2eb6cc665f745d00e07d7d6d78db05a6d4aec1
MD5 6654333f6993e88641eb6d4b2dec80bd
BLAKE2b-256 61a0d121f19f92a36fcc469b31c271664aa5c0a36923aab89caecd7bcc73bfe7

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