Skip to main content

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

pip install oscal-pydantic

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oscal-pydantic-2023.3.21.tar.gz (87.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oscal_pydantic-2023.3.21-py3-none-any.whl (106.6 kB view details)

Uploaded Python 3

File details

Details for the file oscal-pydantic-2023.3.21.tar.gz.

File metadata

  • Download URL: oscal-pydantic-2023.3.21.tar.gz
  • Upload date:
  • Size: 87.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for oscal-pydantic-2023.3.21.tar.gz
Algorithm Hash digest
SHA256 576840734f4405aa647b5296f8756ee7e5c88a5f7c7629beb7739640e9dfbc8a
MD5 83a1d7cc144705cb23d6d5e466837753
BLAKE2b-256 41c8033c88f565f13e88494182a66f141cfb172e36c57176051ce65bad189028

See more details on using hashes here.

File details

Details for the file oscal_pydantic-2023.3.21-py3-none-any.whl.

File metadata

File hashes

Hashes for oscal_pydantic-2023.3.21-py3-none-any.whl
Algorithm Hash digest
SHA256 846793409f247ad9fb47e0ebec9af4dd9d6cf6acc52f4a1a2e3e37fe76598d7d
MD5 a1dcba36315812449a65ba91c3698dc5
BLAKE2b-256 e5da21347a316fb0c4722e3d1d3cb05da6b0b3c579057d2ec80df3eec9abef76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page