AffidavitGenerator

Affidavit Generator Logo

Modern, Professional Affidavit Document Generator

Version Release Platform Python License Made with CustomTkinter

Affidavit Generator

πŸ”— Download Latest Release

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


πŸ“₯ Download

Get the latest version of Affidavit Generator:

πŸš€ Download v1.0.0 Release

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:


🎨 What’s New in v1.1

πŸš€ Features

πŸ“ Project Structure

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

πŸ”§ Installation

Step 1: Install Dependencies

Open PowerShell in the project directory and run:

pip install -r requirements.txt

This will install:

▢️ Usage

Running the Application

python app.py

Using the Application

  1. Fill in all the form fields:

    Applicant Information:

    • Applicant Name - Full name of the applicant
    • Applicants Father Name - Father’s full name
    • Applicants Indian Address - Complete current Indian address (multi-line)
    • Applicants Bangladesh Address - Complete original Bangladesh address (multi-line)
    • Date of Entry - Select date from calendar picker when applicant entered India

    Introducer/Character Reference:

    • Introducer Name - Name of the person providing character reference
    • Introducer Occupation - Occupation of the introducer
    • Introducer Father Name - Father’s name of the introducer
    • Introducer Address - Complete address of the introducer (multi-line)
    • Introducer Age - Use slider to select age (18-100 years)
  2. Click β€œπŸ“„ Generate Affidavits”

  3. Success confirmation will appear with file locations

  4. Find your documents:

    • Generated files will be saved in: output/[Applicant Name]/
    • Three documents will be created with the same names as templates:
      • Shedule-1C.docx
      • Self-Declaration.docx
      • Introducer-CR.docx

πŸ“ Form Fields & Template Placeholders

The 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 ``

πŸ§ͺ Testing

To test the generator without using the GUI:

python test_generator.py

This will create a test output folder with sample data.

🎨 Customizing Templates

You can customize the templates by:

  1. Opening the .docx files in the affidavit folder with Microsoft Word
  2. Editing the content as needed
  3. Using placeholders in the format: ``
  4. Saving the template

Available placeholders: See the table above for all supported placeholders.

πŸ” Troubleshooting

Issue: Templates not found

Issue: Module not found error

Issue: Application doesn’t open

Issue: Placeholders not replaced

πŸ‘¨β€πŸ’» Development

Built with:

Building & Distribution

Building Executable

To build a standalone Windows executable:

.\build_exe.bat

This creates a dist folder with the executable and all dependencies.

Building Windows Installer

To create a professional Windows installer with Start Menu and Desktop shortcuts:

.\build_installer.bat

Requirements:

Output:

Creating Portable Version

To package the application as a portable ZIP file:

.\package_portable.bat

What it does:

Output:

Build Everything at Once

To build both the installer and portable version in one command:

.\build_all.bat

This runs:

  1. build_exe.bat - Creates executable
  2. build_installer.bat - Creates Windows installer
  3. package_portable.bat - Creates portable ZIP

Prepare Release

To prepare a complete release package:

.\prepare_release.bat

This creates both distribution formats ready for GitHub release:

See also:

οΏ½πŸ“„ License

Powered by N&D Co.

🀝 Support

For support or feature requests:

πŸ“ Credits & Attribution

Developed by: N&D Co. and Nakshatra Ranjan Saha
Made for: Bangali Oikya Manch
Purpose: Streamlining citizenship affidavit documentation process


πŸ“Š Project Info

Version Last Updated Status Made with Love

πŸ“š Additional Documentation

Enhanced Features β€’ UI Guide β€’ Quick Start β€’ Build Guide β€’ Changelog


⭐ If you find this helpful, please consider starring the repo!

🌟 Star on GitHub β€’ πŸ“¦ View Releases