This is a Python project that generates a Word document with a table of dates. The user can select a start date and an end date, and the program will generate a table with all the dates in between. The user can then save the table as a Word document.
- Requires Python >=
3.11
- Clone the repository:
git clone https://github.com/username/word-date-generator.git
- Open a terminal and navigate to the project directory.
- Create a virtual environment (optional but recommended):
- Linux & MacOS:
python -m venv .venv
orpython3 -m venv .venv
- Windows:
py -m venv .\.venv
- Linux & MacOS:
- Activate the virtual environment:
- Linux & MacOS:
source .venv/bin/activate
- Windows:
.\.venv\Scripts\activate
- Linux & MacOS:
- Install the required packages:
pip install -r requirements.txt
- Choose whether to just run it or build it
- I just want to run it
- Run the program:
python WordDateGenerator.py
- Run the program:
- I want to build/compile it
- Run the compile command:
- Linux & MacOS:
pyinstaller --noconfirm --onedir --windowed --add-data "./.venv/lib/python3.11/site-packages/customtkinter:customtkinter/" --hidden-import "babel.numbers" "./WordDateGenerator.py"
- Windows:
pyinstaller --noconfirm --onedir --windowed --add-data ".\.venv\Lib\site-packages\customtkinter;customtkinter/" --hidden-import "babel.numbers" ".\WordDateGenerator.py"
- Linux & MacOS:
pyinstaller
outputs the build todist/WordDateGenerator
- Run the program by running the executable at
/dist/WordDateGenerator/WordDateGenerator
or.\dist\WordDateGenerator\WordDateGenerator.exe
- Run the compile command:
- I just want to run it
- Select a start date and an end date using the date picker.
- Click the "Generate" button to generate the table.
- Click the "Save" button to save the table as a Word document.
This project is licensed under the MIT License - see the LICENSE file for details.