Skip to content

Index

The sip subpackage

gamslib.sip

Tools for dealing with GAMS Submission Information Packages (SIPs).

The gamslib.sip subpackage provides tools for creating, validating, and managing Submission Information Packages (SIPs) in accordance with GAMS and DSA standards.

The utility module provides a few helper functions for common tasks such as counting files and bytes in a directory.

The validation submodule offers functions to validate the structure and metadata of Bagit directories, including checks for required files, manifests, and SIP JSON metadata.

CURRENT_SIP_JSON_SCHEMA_URL module-attribute

CURRENT_SIP_JSON_SCHEMA_URL = 'https://gams.uni-graz.at/pub/gams/static/schemas/sip-schema-gams-v1.0.json'

DEPRECATED_SIP_JSON_SCHEMA_URLS module-attribute

DEPRECATED_SIP_JSON_SCHEMA_URLS = []

RESOURCE_PATH module-attribute

RESOURCE_PATH = Path(__file__).parent / 'resources'

BagValidationError

Bases: Exception

Exception raised when a bag is invalid.