ascoderu / xtarfile Goto Github PK
View Code? Open in Web Editor NEWWrapper around tarfile to add support for more compression formats
License: Apache License 2.0
Wrapper around tarfile to add support for more compression formats
License: Apache License 2.0
For example the following code is not supported:
tarfile.open(package, mode='r', encoding='utf-8')
E.g. add a Github Actions workflow that runs in a Windows environment and that replicates the current Travis CI setup.
The installing command is not working in MacOS.
It's shows like this: zsh: no matches found: xtarfile[zstd]
It's working in Linux
pip version:
pip 23.1.2 from /opt/logs_upload/lib/python3.11/site-packages/pip (python 3.11)
I am trying to extract from an archive that has nested folders. Structure is as follows:
meters
--- 1
------- 1.json
--- 2
------- 2.json
....
....
....
I am getting the following error:
Exception in extraction: [Errno 22] Invalid argument: '.\meters\128\2022-04-09T00:00:00.json'
Code used is as follows:
import xtarfile as tarfile try: with tarfile.open( tmp_folder + f.filename, 'r:gz') as archive: archive.extractall() except Exception as e: print(f"Exception in extraction: {e}") return "Error in extracting meters.tar.gz "
Python version is:
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.