Software & website development
Back to list

Contract Generator

Contract Generator

📌 Project Status:

Ready for demonstration. This program was originally developed for a specific client and is successfully used in practice. The version presented on this page is adapted for demo purposes (with placeholder data: LLC "Your Company", Director Ivanov I.I.), and is intended to showcase the code and app capabilities.

Contract Generator is a desktop application with a graphical interface built using Tkinter. It automatically generates contracts and service acts based on templates and client data stored in an SQLite database. It supports convenient client selection with autocomplete, manual input, and adding new clients through a separate window.

Clients are added via a simple and intuitive interface, and their data is stored in an SQLite database. Final documents are saved to a folder chosen by the user.

The interface is entirely in Russian.

You can download a demo version using the button below. It can be installed and launched immediately for previewing. Note: this version contains fictional data and is not intended for actual use.

If you'd like to adapt the program for your needs, you can download the source code from GitHub. Add a .env file with your details, adjust the contract and act templates as needed — and you’ll get a working solution tailored for your company.


This version is specifically built for Windows OS.

📄 Contract Generator

Author: Liubov Kovaleva [@liuBA29]
Version: 1.0.0
Date: 01.06.2025
License: MIT

📌 Description

An application for generating documents (contracts and service acts) based on templates with automatic insertion of client data. Uses an SQLite database to store client and payment details. A convenient Tkinter-based GUI lets you quickly select a client and generate the required document.

💡 Features

  • Generate contract and act
  • Add new clients via a separate window
  • Data stored in an SQLite database
  • Autocomplete for client selection
  • User-defined file save path

🛠️ Dependencies

Python: 3.10+
Libraries:

  • tkinter — GUI
  • sqlite3 — database
  • docx (from python-docx) — document generation
  • os, datetime, pathlib — standard modules

Installation:
pip install python-docx

🚀 Launch

python gui.py
On first launch, a database with tables for clients and payment conditions is created automatically.

📋 Features in Action

  • ✅ Autocomplete client selection
  • ✅ User-defined document save path

You can download a ready-to-run demo version using the "Download DEMO" button below. Note: it contains fictional data and is not intended for real use.

If you want to adapt the program for your own use, you can download the source code from GitHub. To do this:

  • Download the GitHub repository;
  • Create a .env file in the src/ folder and add your details in the following format:


  • USER_COMPANY=your company full name
    USER_COMPANY_SHORT=your company short name
    USER_NAME=Full name of the manager
    AS=acting as...
    BASED_ON=based on what document
    OUR_REQUIZITS=address \n bank details \n JSC “MTBank”, BIC MTBKBY22,\n UNP 191085820

    This way, you’ll get a fully functional app that inserts your company’s details into the generated contracts.

    GitHub:

    https://github.com/liuBA29/my_contract_generator.git