$npx skillfedfor your agent

backports.tarfile

Backport of CPython tarfile module

With conditionsPyPI Released May 202477.4M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — backports.tarfile-1.2.0-py3-none-any.whl
v1.2.0 · released 2024-05-28 · Python >=3.8

Yes, if you need specific tarfile enhancements not available in your Python version's standard library. The permissive MIT license, zero runtime dependencies, and active maintenance make it low-risk. However, verify first that the standard library tarfile doesn't already meet your needs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later
  • Low install friction with no runtime dependencies.
  • Actively maintained as of 2026-04-13, marked production-stable and supporting current Python versions.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, making it safe for both open-source and commercial projects.

last release 2024-05-28 (808 days) · last repo commit 2026-04-13 · 5 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,426,997 downloads/mo, #440 on PyPI

Verify before relying

pip install backports.tarfile==1.2.0

import tarfile
with tarfile.open('archive.tar.gz') as tar:
    tar.extractall()
  • Which specific tarfile enhancements or bug fixes this backport provides compared to the standard library
  • Whether this backport is necessary for your Python version or if the standard library tarfile already includes needed features
Same gist for agents: .md · .json

What it is and what it does

backports.tarfile is a backport of CPython's tarfile module for Python 3.8+. It has no runtime dependencies and installs as a pure Python wheel, making it lightweight and portable.

The package exists to provide access to tarfile improvements that may not yet be available in the standard library version bundled with your Python installation. It's useful when you need specific tarfile functionality that was added in a newer Python version but your project must support an older release.

Use it for

  • Use it when you need newer tarfile features but must maintain compatibility with Python 3.8+
  • Use it to ensure consistent tar handling behavior across multiple Python versions
  • Use it to access bug fixes in tarfile that haven't been backported to your installed Python version

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need specific tarfile enhancements not available in your Python version's standard library.

The permissive MIT license, zero runtime dependencies, and active maintenance make it low-risk. However, verify first that the standard library tarfile doesn't already meet your needs.

Install

backports-tarfile on PyPI

Before you install

Low install friction with no runtime dependencies. Actively maintained as of 2026-04-13, marked production-stable and supporting current Python versions.

Requires Python 3.8 or later

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, making it safe for both open-source and commercial projects.

Quickstart

pip install backports.tarfile==1.2.0

import tarfile
with tarfile.open('archive.tar.gz') as tar:
    tar.extractall()

Verify before relying

  • Which specific tarfile enhancements or bug fixes this backport provides compared to the standard library
  • Whether this backport is necessary for your Python version or if the standard library tarfile already includes needed features

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 808 days since the last release
Last repo commit
First released
Downloads77,426,997 / month, #440 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only

Evidence: backports.tarfile-1.2.0-py3-none-any.whl

Tags

Capabilities
tarfile backporttar archive handlingcpython tarfile moduletar extraction pythonbackport tarfile
Topics
backportstdlib-enhancement

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “tarfile backport”

  • backports.tarfileProvides a backport of Python's tarfile module for use on Python…
  • backports.zstdProvides Zstandard compression support for Python versions before…
  • tarsafeTarsafe wraps Python's tarfile module to prevent path traversal…

Give your agent the search over MCP, or paste the wish link into any chat.

Similar packages

tarsafe With conditions
PyPI · Security · released Mar 2023

Tarsafe wraps Python's tarfile module to prevent path traversal attacks during tar extraction, providing a drop-in replacement for the standard library's extractall() method.

permissive licensepure Python · 3.6+
396.8Kdownloads / mo
rpmfile Worth it
PyPI · Utilities · released May 2026

Inspect and extract files from RPM archive files using a Python API modeled after the standard tarfile module.

Install it if you need to programmatically work with RPM files in Python without relying on system RPM tools.

MITpure Python · 3.10+
1.1Mdownloads / mo
backports.zstd With conditions
PyPI · Compression · released Jun 2026

Provides Zstandard compression support for Python versions before 3.14, backporting the standard library's zstd module along with zstd-enabled tarfile and zipfile modules.

PSF-2.0compiled wheel
77.8Mdownloads / mo
zipfile36 Skip
PyPI · Compression · released Oct 2016

Provides a backport of Python 3.6's zipfile module for use on earlier Python versions, enabling access to improvements made in that release.

permissive licensepure Pythonabandoned
1.4Mdownloads / mo
securetar Worth it
PyPI · Python Modules · released Apr 2026

Secure Tar wraps Python's tarfile module to add encryption and secure file handling for tar archives, supporting both unencrypted and encrypted backup creation with optional compression.

Install it if you need to create encrypted tar archives in Python 3.11+ and want a simpler API than managing cryptography directly.

permissive licensepure Python · 3.11.0+
577.3Kdownloads / mo
tzst With conditions
PyPI · Python Modules · released Apr 2026

tzst creates and extracts tar archives compressed with Zstandard, offering a Python API and command-line interface for archive management with streaming support and atomic operations.

BSD-3-Clausepure Python · 3.12+
207.0Kdownloads / mo

See also unix-ar · fastar · backports.ssl · backports.entry-points-selectable