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-2023.3.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32fdbb16c8507c870f05fe993edc257e296b39f78f89e2cf86322781551156e3 |
|
MD5 | 7ffde7dc4becd832b58426b97ac74d92 |
|
BLAKE2b-256 | b40be5822b2802e4a9b1c461d4b5e3f0a7dfd59d914ba26c63aa7c500ce72391 |
Hashes for oscal_pydantic_v2-2023.3.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51dc6aaf4c557777c1fdfd2bc5df9257c1d96ec37550d5890269b6876bcff718 |
|
MD5 | fd7fad6a3aa3c92517505d33116679ce |
|
BLAKE2b-256 | ac3fc17c4f1a509eb11c818f3662c0f836142a0ccfa266da532e3b9677c70e5b |