Giter Club home page Giter Club logo

Comments (11)

miurahr avatar miurahr commented on August 22, 2024 1

It is good chance for contributor to add command line option and add function described above in py7zr/cli.py.
For creation,

  1. create archive.7z as ordinal but on temporary directory.
  2. split archive into a several files with a specified size.

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

I don't know a specification for multi volume archives.
Does anyone knows a specification or reference?

from py7zr.

github-actions avatar github-actions commented on August 22, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

from py7zr.

Kcchouette avatar Kcchouette commented on August 22, 2024

Maybe should you deactivate github-actions (bot) as:

  • I won't comment every week
  • it closes useful issue (eg #88 #89)

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

7zip seems not to finish a implementation of 7z-Multivolue because original source said

// #define _7Z_VOL
// 7z-MultiVolume is not finished yet.
// It can work already, but I still do not like some
// things of that new multivolume format.
// So please keep it commented.

https://github.com/kornelski/7z/blob/20e38032e62bd6bb3a176d51bce0558b16dd51e2/CPP/7zip/Archive/7z/7zHeader.h#L14-L19

Are there any further specification information?

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

@Kcchouette If you want to extract files such as data.7z.001 data.7z.002 data.7z.003, you can do it without py7zr modification as follows;

cat data.7z.001 data.7z.002 data.7z.003 > data.7z
py7zr x data.7z

You can also create sliced archives

split -a 3 -b 10k data.7z

You can find files data.7z.001 data.7z.002 data.7z.003

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

It is also easy to write python script do the same thing

import os
import pathlib
import py7zr

archive = 'data.7z'
with open(archive, 'wb) as outf:
    for i in range(100):
        src = pathlib.Path("{:s}{:03d}".format(archive, i))
        if not src.exist():
           break
        outf.write(src.read_bytes())

with py7zr.SevenZipFile(archive, 'r') as zip:
    zip.extractall()

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

#134 is super simple implementation. Does it help @Kcchouette ?

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

v0.7.2 with the feature as CLI is now released.

from py7zr.

Kcchouette avatar Kcchouette commented on August 22, 2024

Thanks, it's exactly what I wanted
Maybe should you document that? https://py7zr.readthedocs.io/en/latest/py7zr.html#command-line-options

from py7zr.

miurahr avatar miurahr commented on August 22, 2024

Document updated. I'd like to close.

from py7zr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.