packio.io
Tools to read and write multiple data objects using a single file path.
Classes
Manage addition of files to zipfile archive. |
|
Context manager to write multiple objects to the same file. |
|
Context manager to read multiple objects from the same file. |
Module Contents
- class packio.io.ArchiveWriter[source]
Manage addition of files to zipfile archive.
- Parameters:
tempdir – Temporary directory to write files to.
writer – Callable to copy files from tempdir into the archive.
filenames – List of filenames to add to the archive.
- class packio.io.Writer(path: pathlib.Path)[source]
Context manager to write multiple objects to the same file.
Initialize the reader with a file path.
- __enter__() ArchiveWriter[source]
Create temporary directory and zip object, return callable.