bibliotekar.Module#
- class bibliotekar.Module(content, script_metadata, script_metadata_span, *, name)[source]#
A Python module or script.
This class does not distinguish between scripts and modules. It supports PEP723 - Inline script metadata for both even though that metadata is technically only meant for scripts.
Methods
__init__(content, script_metadata, ...)load(path)Load a module or script from a file.
save(path)Save the module to a file.
Return the tracking metadata associated with the module, if any.
with_tracking_data(metadata)Return a new module with new tracking metadata.