multivolumefile is a Python library that provides a file-like object wrapper to automatically split large files into multiple smaller 'volumes' during writing, and merge them back seamlessly during reading. It handles the underlying file operations, creating numbered volume files (e.g., `filename.000`, `filename.001`). The current version is 0.2.3, and it has a moderate release cadence, with several minor updates addressing stability and feature enhancements.
pip install multivolumefileVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to write data to a `MultivolumeFile` that automatically splits content into specified `volume_size` chunks, and then how to read the entire content back seamlessly. It also includes cleanup for the generated volume files.
Always use `MultivolumeFile("my_base_filename", "rb")` to read a multivolume set.Explicitly define `volume_size` in the constructor, e.g., `MultivolumeFile('filename', 'wb', volume_size=1024 * 1024)` for 1MB volumes.Upgrade to version 0.1.4 or newer for stable append mode behavior. When possible, prefer writing in 'wb' mode for fresh data or full overwrites.
Ensure the library is installed using `pip install multivolume` before running scripts that depend on it. It is also recommended to use a virtual environment.
Ensure the `multivolume` library is installed in the test environment by running `pip install multivolume`.
No dependency data recorded yet.