Skip to main content

multi volume file wrapper library

Project description

multivolumefile

https://coveralls.io/repos/github/miurahr/multivolume/badge.svg?branch=master https://github.com/miurahr/multivolume/workflows/Run%20Tox%20tests/badge.svg

MultiVolumefile is a python library to provide a file-object wrapping multiple files as virtually like as a single file.

Install

You can install it as usual public libraries, you can use pip command

` pip install multivolumefile `

You are also able to add it to your setup.py/cfg as dependency.

Usages

  • For reading multi-volume files, that has names archive.7z.0001, archive.7z.0002 and so on, you can call multivolumefile as follows;

with multivolumefile.open('archive.7z', 'rb) as vol:
    data = vol.read(100)
    vol.seek(500)
  • For writing multi-volue files, that has names archive.7z.0001, archive.7z.0002 and so on, you can call multivolumefile as follows;

data = b'abcdefg'
with multivolumefile.open('archive.7z', 'rb) as vol:
    size = vol.write(data)
    vol.seek(0)

you will see file archive.7z.001 are written.

Contribution

You are welcome to contribute the project, as usual on github projects, Pull-Request are welcome.

License

Multivolume is licensed under GNU Lesser General Public license version 2.1 or later.

ChangeLog

All notable changes to this project will be documented in this file.

Unreleased

Added

Changed

Fixed

Deprecated

Removed

Security

v0.1.0

  • *API changed*

Added

  • Add mode ‘x’, ‘xb’ and ‘xt’

  • Add mode ‘a’, ‘ab’ and ‘at’

  • Support flush()

Changed

  • Change API: file argument of ‘r’ and ‘rb’ now single basename instead of list of files

v0.0.5

  • Fix packaging.

v0.0.4

  • Support context manager

v0.0.3

  • Fix read() behavior after all data has read.

v0.0.2

  • Add test

v0.0.1

  • Support preliminary read functions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multivolumefile-0.1.0.tar.gz (73.9 kB view hashes)

Uploaded source

Built Distribution

multivolumefile-0.1.0-py3-none-any.whl (14.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page