Tagged articles
Zipfile
14 articles · Page 1 of 1
This article walks through a fan‑requested Python automation that replaces artistic watermark text in shipping‑bill DOCX files, detailing the initial python‑docx attempt, the shortcomings of win32com shape traversal, and the final reliable solution using zipfile‑based XML replacement.
DOCXPythonText Replacement
0 likes · 10 min read

This article explains how to use Python's built‑in zipfile module and the third‑party rarfile library to brute‑force and decrypt encrypted zip archives, handle Chinese filename encoding issues, and generate password permutations efficiently with itertools for flexible password lengths.
PythonZipfilefile decryption
0 likes · 9 min read

This article explains why Chinese filenames become corrupted when extracted with Python's zipfile module and provides a complete, step‑by‑step solution that re‑encodes the names correctly using standard libraries.
File ExtractionUnicodeZipfile
0 likes · 5 min read

This article demonstrates a Python solution for extracting multiple zip archives, reading the three Excel files inside each, and concatenating them into a single spreadsheet using pathlib, zipfile, and pandas, providing a practical automation workflow for data processing tasks.
PandasZipfile
0 likes · 4 min read

This article introduces the commonly used Python file handling modules—os, shutil, and zipfile—explaining their key functions, demonstrating path operations, file copying, moving, and compression/decompression with practical code examples to help readers efficiently manage files and directories.
OS moduleTutorialZipfile
0 likes · 4 min read

This guide explains how to handle common compression formats—zip, tar.gz, rar, and 7z—in Python, covering built‑in modules, third‑party libraries, required installation steps, and complete code examples for both creating and extracting archives.
CompressionPythonZipfile
0 likes · 10 min read

This article explains how to work with common compressed file formats such as zip, tar.gz, rar, and 7z in Python, detailing the relevant modules, usage patterns, and providing complete code examples for creating and extracting archives on both Windows and Linux.
7zZipfilefile compression
0 likes · 10 min read

This article demonstrates two Python‑based solutions for automatically replacing placeholders in a Word document with data from an Excel sheet—one using python‑docx (with win32com conversion for .doc files) and another leveraging the zipfile module to edit the underlying XML—complete with code, troubleshooting tips, and handling of formatting issues.
DOCXExcelWord
0 likes · 10 min read

This article demonstrates how to automate the replacement of placeholders in Word (.doc/.docx) files with data from an Excel sheet using Python, presenting two approaches—one based on python-docx and win32com, and another that manipulates the underlying zip archive with the zipfile module—while addressing common pitfalls and preserving document formatting.
DOCXExcelZipfile
0 likes · 11 min read

This article explains how to automate the replacement of Excel row data into Word templates using Python, offering two approaches—one with python-docx and win32com for .doc conversion, and another leveraging zipfile to edit the underlying XML—complete with code examples and troubleshooting tips.
DOCXPythonZipfile
0 likes · 13 min read

This article explains how to use Python's built‑in zipfile module and the third‑party rarfile library to extract encrypted archives, handle Chinese filename encoding issues, and implement a brute‑force password search with itertools for arbitrary password lengths.
PythonZipfilebruteforce
0 likes · 7 min read

This article walks through using Python's zipfile module to brute‑force an encrypted ZIP password, demonstrates a multithreaded approach that initially exhausts memory, and shows how replacing ThreadPoolExecutor's unbounded queue with a bounded one resolves the issue.
Memory LeakMultithreadingThreadPoolExecutor
0 likes · 5 min read

This tutorial shows how to use Python's os, shutil, and zipfile modules to batch‑compress thousands of folders, delete the original files, and produce zip archives automatically, turning a labor‑intensive task into a one‑minute automated process.
Zipfilebatch-processingfile compression
0 likes · 6 min read

Learn how to use Python's zipfile module to inspect ZIP archives, extract their contents, and create new compressed files, with clear code examples demonstrating reading file info, extracting all files, and adding files in write or append mode.
Code TutorialPythonZIP archive
0 likes · 5 min read
