How to create tar.gz file with python?

Veröffentlicht am: 14 Januar 2022
auf dem Kanal: Pythonista24x7
620
7

This video explores two methods for creating compressed tar.gz archive files in Python

1. Using the os module - (For those comfortable with system commands)
a. Leverages the built-in os module to execute system commands like the typical tar command you'd use in the terminal.

2. Using the tarfile library - (Recommended for Pythonic approach)
a. Offers a dedicated Python library named tarfile for creating and manipulating tar archives.
b. Provides a more Pythonic and potentially more robust way to handle tar file creation within your code.

The video will likely showcase code examples for both methods, allowing you to choose the approach that best suits your needs.


Auf dieser Seite können Sie das Online-Video How to create tar.gz file with python? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Pythonista24x7 14 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 620 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!