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.12.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f14b64af9fcc95394a984ea9819246c8c2c015aac343b75e9c2743314c93b0 |
|
MD5 | d3b3b500abfee8485fedd37c48832c0c |
|
BLAKE2b-256 | 8682afb5f128599641eb0586f5fefd16696d5a76b8f7a59efcfacc1abb56fd79 |
Hashes for oscal_pydantic_v2-2023.12.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071c935c18d1b69712d8405884469a859a531bff3607e93ee99c6045977d0d47 |
|
MD5 | a87b3e8ea7269dc2e96b971f27916525 |
|
BLAKE2b-256 | 6e26734ebc31f4aa8fbf1bc3c7879db9ec94cccf5fa80d8a28c5eb8ea9b13977 |