Comments (1)
I found a solution using another module:
import unix_ar
import tarfile
ar_file = unix_ar.open('download/filename.deb')
tarball = ar_file.open('control.tar.gz') # default interest location on .deb files
tar_file = tarfile.open(fileobj=tarball) # handles gz decompression internally
tar_file.extractall('output')
tar_file.close()
ar_file.close()
from patool.
Related Issues (20)
- Grab archives' integeritiy test result HOT 4
- Release a new version HOT 5
- patoolib.util.PatoolError: could not find an executable program to extract format compress HOT 2
- Please support zstd format `.zst` HOT 2
- "internal error" when extracting a RAR into an inexistent --outdir HOT 1
- Internal error "TypeError: '>=' not supported between instances of 'str' and 'int'" HOT 1
- Patool `oops I did it again` error HOT 1
- Я получаю ошибку при распаовке архива, потому что в названии архива присутствует смайлик ❤️ HOT 1
- file "x" was not found HOT 1
- --force-local option for tar isn't supported in macOS HOT 1
- [feature request] bash completion HOT 1
- Add bzip3 support HOT 1
- Inconsistent behavior with --outdir. HOT 1
- Compression level options for bzip3 is invalid HOT 1
- Update CHM parsing HOT 3
- Missing some information in Readme.txt HOT 1
- How to decompress zip volume xxx.zip, xxx.z01 and xxx.z02 HOT 1
- On OpenBSD: file: unknown option -- uncompress HOT 1
- TypeError on unar with password HOT 5
- Use official 7-Zip instead of p7zip HOT 1
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 patool.