A set of Pydantic models generated from the OSCAL specification.
Project description
OSCAL Pydantic
Description
A simple module that contains pydantic datamodels representing the OSCAL standard. They are built from the OSCAL models published by NIST at https://github.com/usnistgov/OSCAL
Several Python projects include data models, but importing a large project just to get access to the datamodel represents a significant overhead. This module simply provides the models.
Installation
Package coming!
Usage
To import a specific model, include it in your python file:
e.g.: from oscal_pydantic import catalog
Alternatively, you can import the complete OSCAL schema:
from oscal_pydantic import complete
After importing, you should be able to define OSCAL objects that support pydantic's rich validation rules.
License
This code is released under the [CC0 1.0 Universal Public Domain Dedication] (https://creativecommons.org/publicdomain/zero/1.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
Hashes for oscal-pydantic-v2-2024.2.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75505bbe0f4b76c77b8fea6dd3dccae31dc4c28c20b06b32c068acb8c5114be1 |
|
MD5 | c5e2a33a9ad52703c6c03f89b90f4074 |
|
BLAKE2b-256 | 7d5ffc61db61fb36cf6b9b9be349921b56ce3569d64a750c714969a735644cd3 |
Hashes for oscal_pydantic_v2-2024.2.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b32b665a40935490cd974a42b4a3eb0cd795223808202c9de61c058e7e18b71 |
|
MD5 | c3b52a40e1041c3be0ed1822a0fceac4 |
|
BLAKE2b-256 | 0281f8ef6e89301a76dccc680f34dd3db011c6bdd3fe56607d2c860d51192376 |