A modern, professional GUI-based Python application for generating affidavit documents for citizenship applications.
Developed by: N&D Co. and Nakshatra Ranjan Saha
Made for: Bangali Oikya Manch
Get the latest version of Affidavit Generator:
Choose your preferred version:
| Package | Size | Description |
|---|---|---|
| Windows Installer πΏ | ~100 MB | Recommended. Professional installation with shortcuts and uninstaller |
| Portable ZIP π¦ | ~100 MB | No installation required. Extract and run anywhere |
System Requirements:
utility/
β
βββ affidavit/ # Template folder (Word documents)
β βββ Shedule-1C.docx
β βββ Self-Declaration.docx
β βββ Introducer-CR.docx
β
βββ output/ # Generated documents folder
β βββ [Applicant Name]/
β
βββ app.py # Main application
βββ test_generator.py # Test script
βββ requirements.txt # Dependencies
βββ README.md # This file
Open PowerShell in the project directory and run:
pip install -r requirements.txt
This will install:
customtkinter - Modern GUI frameworkpython-docx - Document generation librarytkcalendar - Calendar date picker widgetpython app.py
Fill in all the form fields:
Applicant Information:
Introducer/Character Reference:
Click βπ Generate Affidavitsβ
Success confirmation will appear with file locations
Find your documents:
output/[Applicant Name]/Shedule-1C.docxSelf-Declaration.docxIntroducer-CR.docxThe application maps form fields to template placeholders as follows:
| Form Field | Template Placeholder |
|---|---|
| Applicant Name | `` |
| Applicants Father Name | `` |
| Applicants Indian Address | `` |
| Applicants Bangladesh Address | `` |
| Date of Entry | `` |
| Current Date | `` (auto-generated) |
| Introducer Name | `` |
| Introducer Age | `` |
| Introducer Occupation | `` |
| Introducer Father Name | `` |
| Introducer Address | `` |
To test the generator without using the GUI:
python test_generator.py
This will create a test output folder with sample data.
You can customize the templates by:
.docx files in the affidavit folder with Microsoft WordAvailable placeholders: See the table above for all supported placeholders.
affidavit folderShedule-1C.docx, Self-Declaration.docx, Introducer-CR.docxpip install -r requirements.txtpython --versionBuilt with:
To build a standalone Windows executable:
.\build_exe.bat
This creates a dist folder with the executable and all dependencies.
To create a professional Windows installer with Start Menu and Desktop shortcuts:
.\build_installer.bat
Requirements:
Output:
installer_output\AffidavitGenerator_Setup_v1.0.exeTo package the application as a portable ZIP file:
.\package_portable.bat
What it does:
dist folder contentsOutput:
AffidavitGenerator_Portable_v1.0.zip (~100 MB)To build both the installer and portable version in one command:
.\build_all.bat
This runs:
build_exe.bat - Creates executablebuild_installer.bat - Creates Windows installerpackage_portable.bat - Creates portable ZIPTo prepare a complete release package:
.\prepare_release.bat
This creates both distribution formats ready for GitHub release:
See also:
| Powered by N&D Co. |
For support or feature requests:
Developed by: N&D Co. and Nakshatra Ranjan Saha
Made for: Bangali Oikya Manch
Purpose: Streamlining citizenship affidavit documentation process
Enhanced Features β’ UI Guide β’ Quick Start β’ Build Guide β’ Changelog
β If you find this helpful, please consider starring the repo!