This module provides base classes and common functions used in other productmd modules.
Validate attributes by running all self._validate_*() methods.
| Raises: |
|
|---|
Load data from a file.
| Parameters: | f (file or str) – file-like object or path to file |
|---|
Load data from a string.
| Parameters: | s (str) – input data |
|---|
Dump data to a file.
| Parameters: | f (file or str) – file-like object or path to file |
|---|
Dump data to a string.
| Return type: | str |
|---|