
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
.. image:: https://github.com/ascoderu/xtarfile/workflows/CI/badge.svg :target: https://github.com/ascoderu/xtarfile/actions
.. image:: https://img.shields.io/pypi/v/xtarfile.svg :target: https://pypi.org/project/xtarfile/
Wrapper around tarfile to add support for more compression formats.
First, install the library with the tarfile compression formats you wish to support. The example below shows an install for zstandard tarfile support.
.. sourcecode :: bash
pip install xtarfile[zstd]
You can now use the xtarfile module in the same way as the standard library tarfile module:
.. sourcecode :: python
import xtarfile as tarfile
with tarfile.open('some-archive', 'w:zstd') as archive:
archive.add('a-file.txt')
with tarfile.open('some-archive', 'r:zstd') as archive:
archive.extractall()
Alternatively, detecting the correct compression module based on the file extensions is also supported:
.. sourcecode :: python
import xtarfile as tarfile
with tarfile.open('some-archive.tar.zstd', 'w') as archive:
archive.add('a-file.txt')
with tarfile.open('some-archive.tar.zstd', 'r') as archive:
archive.extractall()
Install the project's dependencies with :code:pip install .[zstd]
.
Run the tests via :code:python3 setup.py test
.
FAQs
Wrapper around tarfile with support for more compression formats.
We found that xtarfile demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.