Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 888 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 888 Bytes

c2m2-assessment

This application may be used for performing assessments on C2M2 datapackages.

Installation

pip install "c2m2-assessment @ git+https://github.com/nih-cfde/c2m2-assessment"

Usage

A more concrete example of executing the assessment can be found here.

CLI

# review the options
c2m2-assessment --help
# perform a basic assessment
c2m2-assessment -v -i datapackage.zip -o results.json

Docker

# build the docker image
docker build -it c2m2-assessment .
# run the image the same way you would the python cli
docker run -w /work -v $(pwd):/work -it c2m2-assessment -i datapackage.zip -o results.json

Python

# or see, __main__.py
from c2m2_assessment.rubrics.NCE import rubric
# FAIRshake-style Rubric object capable of performing assessment
results = list(rubric.assess([CFDE_client]))