This script removes protection from tables and cells in OpenDocument Spreadsheet (.ods) files. It can process a single file or all .ods files within a specified directory.
- Python 3.x
odfpy
library
-
Ensure you have Python 3.x installed.
-
Install the
odfpy
library using pip:pip install odfpy
You can use the script to unprotect a single .ods file or all .ods files within a directory.
-
Single File:
python unprotect_ods.py /path/to/your/file.ods
-
All Files in a Directory:
python unprotect_ods.py /path/to/your/directory
The script will automatically detect whether the given path is a file or a directory and process accordingly.
-
To unprotect a single file:
python unprotect_ods.py sample.ods
-
To unprotect all .ods files in a folder:
python unprotect_ods.py /path/to/your/folder
The script will skip non-.ods files when processing a directory. If an error occurs while processing a file, an error message will be printed, and the script will continue with the next file (if any).
This project is licensed under the MIT License - see the LICENSE file for details.