Welcome to Excel Sheet Unlocker, a Python program that can unlock cells and dropdowns in an Excel sheet and apply password protection to it. 📖🔐
These instructions will help you set up Excel Sheet Unlocker on your local machine for development and testing purposes.
- Python 3.7 or (ideally) later
- pip (Python package installer)
- A clone of this repository on your local machine
- Clone the repository to your local machine:
git clone https://github.com/adrianwedd/excel-sheet-unlocker.git
- Navigate to the repository's directory:
cd excel-sheet-unlocker
- Create a Python virtual environment:
python -m venv env
- Activate the virtual environment:
# On Windows
env\Scripts\activate
# On Unix or MacOS
source env/bin/activate
- Install the required Python packages:
pip install -r requirements.txt
Now, you're all set to run Excel Sheet Unlocker!
There are two ways to use Excel Sheet Unlocker: interactive mode and command-line arguments mode.
In interactive mode, you run the script without any command-line arguments, and it will prompt you to provide the necessary inputs interactively.
python main.py
Alternatively, you can provide the inputs as command-line arguments when you run the script.
python main.py --input_file /path/to/input.xlsx --output_file /path/to/output.xlsx --sheet_name Sheet1 --password mypassword --progress_bar
Note: Be aware that using the --password
argument will expose your password in your shell history. Please consider your security requirements.
Please refer to the comments in main.py
for a detailed explanation of the code and how it works.
Please read CONTRIBUTING.md
for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md
file for details.
- OpenAI's ChatGPT for assistance in developing the code.
- The openpyxl library for enabling the manipulation of Excel files in Python.
- The tqdm library for enabling the progress bar.