A protocol and tools for defining and working with criteria sets
Project description
Criteria Set Protocol
Python library
This is a Python library with types and implementations of the Criteria Set Protocol. It is published
publicly on PyPI as openframe-criteria-set-protocol
.
Installation
pip install openframe-criteria-set-protocol
Contents
Protocol v1
The library contains the types defined in the protocol v1 specification.
Types
Type | Remarks |
---|---|
Metadata types | |
Metadata |
|
Theme |
|
ThemeStyle |
|
Color |
|
RgbColor |
|
Task tree types | |
CriteriaTree |
|
Criterion |
|
TaskGroup |
|
Task |
|
TaskItem |
|
TaskItem value types | |
SelectSingleType |
|
SelectMultipleType |
|
NumberType |
|
BooleanType |
|
PointOption |
Used by SelectSingleType and SelectMultipleType |
TaskItemValue |
The raw value of a TaskItem, which can be an array |
TaskItemScalarValue |
The raw value of a TaskItem |
REST types | |
MetadataResponse |
Metadata endpoint response body |
StreamCriteriaSetMatrixBody |
Request body for the matrix streaming endpoints |
StreamMatrixResponse |
Matrix streaming endpoints response body |
Schemas
Validation schemas are provided for validating the endpoints of the protocol v1 specification.
Schema | Remarks |
---|---|
criteria_set_id |
Regular expression for the criteria_set_id parameter for endpoints which use it |
version |
Regular expression for the version parameter for endpoints which use it |
marshmallow schemas | |
TreeAndMatrixBodySchema |
Schema for validating the request body for tree and matrix endpoints |
Deployment
Deploy using the following commands:
python3 -m build
python3 -m twine upload dist/*
License
Openframe Criteria Set Protocol by Openframe ApS is licensed under CC BY-ND 4.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for openframe_criteria_set_protocol-2.0.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc938de004272821429d858878b77b4ae43a9ea50a7b00bdf43244c015e9500 |
|
MD5 | 54a95319fea25b862ee076885048faaa |
|
BLAKE2b-256 | 7b37375aa88977d768df86b117660fd1a8cba180c7b841c417a6aca50c4f3c49 |
Close
Hashes for openframe_criteria_set_protocol-2.0.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dcb5882b9635426a5c0dc6889c0ba27a5e596d80bedec98d310bd1a56f45fb4 |
|
MD5 | 76525a4bafd9f27d804036504e2cd260 |
|
BLAKE2b-256 | a6f690aeb6b244102004d6b56c636e34eb85ffae554591dc8ad3441441d97782 |