Comments (11)
It is good chance for contributor to add command line option and add function described above in py7zr/cli.py.
For creation,
- create archive.7z as ordinal but on temporary directory.
- split archive into a several files with a specified size.
from py7zr.
I don't know a specification for multi volume archives.
Does anyone knows a specification or reference?
from py7zr.
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.
Maybe should you deactivate github-actions (bot)
as:
from py7zr.
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.
Are there any further specification information?
from py7zr.
@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.
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.
#134 is super simple implementation. Does it help @Kcchouette ?
from py7zr.
v0.7.2 with the feature as CLI is now released.
from py7zr.
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.
Document updated. I'd like to close.
from py7zr.
Related Issues (20)
- py7zr allows creating 7z archives with stored absolute paths, then always produces an error for extracting (reading) them HOT 15
- extractall callback more frequent progress reports for large files HOT 2
- py7zr fail to load on azure vm, because dependency brotli failed to load brotli DLL HOT 6
- Please consider removing 0.9.5 -> 0.11.2 packages from pypi.org (malware test cases) HOT 3
- IndexError / Worker initialization sets wrong last_file_index HOT 2
- Code cannot handle Error which are presented as "There are some data after the end of the payload data" in 7zip HOT 4
- Some test cases use deprecated functions
- Unable to create 7z/zip archive. HOT 3
- AttributeError when adding empty string with writestr() HOT 2
- Python "zipfile" compatibility HOT 2
- Is there an option to split to volumes? HOT 1
- Memory leaks when uncompressing multi-volume archives HOT 2
- File extraction fails when give filename str as a `targets` argument in v0.21.0 HOT 8
- read/readall dumps the decompressed files to memory, instead of streaming them HOT 2
- Extraction is not completing and dosen't give any error
- Add support for `mode="x"` in `SevenZipFile()` constructor
- py7zr fails to extract a specific encrypted archive
- bug
- Python 3.7 is not supported in version 0.21.0 HOT 1
- Extracting a corrupt 7z file and try to delete it will cause the PermissionError in windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py7zr.