biosimulators_utils.archive package¶
Submodules¶
biosimulators_utils.archive.data_model module¶
Data model for archives (e.g., zip files)
- Author
Jonathan Karr <karr@mssm.edu>
- Date
2020-12-06
- Copyright
2020, Center for Reproducible Biomedical Modeling
- License
MIT
- class biosimulators_utils.archive.data_model.Archive(files=None)[source]¶
Bases:
object
An archive (e.g., zip file)
- files[source]¶
files
- Type
list
ofArchiveFile
- is_equal(other)[source]¶
Determine if two archives are equal
- Parameters
other (
ArchiveFile
) – another archive- Returns
True
, if two archives are equal- Return type
bool
- class biosimulators_utils.archive.data_model.ArchiveFile(local_path=None, archive_path=None)[source]¶
Bases:
object
A file in a archive (e.g., zip file)
- is_equal(other)[source]¶
Determine if two files are equal
- Parameters
other (
ArchiveFile
) – another file- Returns
True
, if two files are equal- Return type
bool
biosimulators_utils.archive.io module¶
Utilities for creating zip archives
- Author
Jonathan Karr <karr@mssm.edu>
- Date
2020-12-06
- Copyright
2020, Center for Reproducible Biomedical Modeling
- License
MIT
biosimulators_utils.archive.utils module¶
Utilities for creating archives
- Author
Jonathan Karr <karr@mssm.edu>
- Date
2020-12-06
- Copyright
2020, Center for Reproducible Biomedical Modeling
- License
MIT
- biosimulators_utils.archive.utils.build_archive_from_paths(path_patterns, rel_path=None, recursive=True)[source]¶
Build an archive from a list of glob path patterns
- Parameters
path_patterns (
list
ofstr
) – glob path patterns for files to bundle into an archiverel_path (
str
, optional) – if provided, set the archive file names to their path relative to this pathrecursive (
bool
, optional) – ifTrue
, match the path patterns recursively
- Returns
archive
- Return type
Archive