No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-07 13:20:09 -05:00
dist rebuilt for windows exe 2026-11-07 13:20:09 -05:00
PythonModelGenerator updated to add aslist and getheaders, cleaned up for additional error handling, rebuilt for shell execution. 2026-11-07 13:04:25 -05:00
.gitignore adding additional support information 2025-10-22 09:01:00 -04:00
.gitlab-ci.yml updating ci/cd to have deploy stage 2025-09-09 08:58:51 -04:00
appsettings.example.json updated determineOutputType module and cleaned up to add in timestamp option. 2025-09-02 12:58:53 -04:00
appsettings.json updated to add aslist and getheaders, cleaned up for additional error handling, rebuilt for shell execution. 2026-11-07 13:04:25 -05:00
CHANGELOG.md updated to add aslist and getheaders, cleaned up for additional error handling, rebuilt for shell execution. 2026-11-07 13:04:25 -05:00
PythonModelGenerator.py updated to add aslist and getheaders, cleaned up for additional error handling, rebuilt for shell execution. 2026-11-07 13:04:25 -05:00
PythonModelGenerator.spec updated to add aslist and getheaders, cleaned up for additional error handling, rebuilt for shell execution. 2026-11-07 13:04:25 -05:00
README.md adding ci/cd 2025-09-08 14:07:40 -04:00
requirements.txt updated to add aslist and getheaders, cleaned up for additional error handling, rebuilt for shell execution. 2026-11-07 13:04:25 -05:00
SUPPORT.md adding additional support information 2025-10-22 09:01:00 -04:00

Python Model Generator

Purpose

This executable is designed to make the process easier to generate usable models for applications that require connecting to the database.

NOTE: This is specifically designed for PostgreSQL connections. Will be updated later to allow connections to different database types but in the meantime its specifically for my tech stack which uses Postgres.

Will make it easier to update if changes occur as you can just regenerate the model from here and copy the file over to the application in a models folder.

Usage

  1. Copy the EXE from the Build folder to a local folder.
  2. When running PythonModelGenerator.exe for the first time it will create an appsettings.json file with templated database connection information, will need to update the databaseName under DATABASE and the Server/Database that is within that.
  3. After saving and closing the file can use the "friendly" you put directly under DATABASE in appsettings to use the configurations for that database.
  4. It will parse the schemas for you to choose from, then follow the prompts to generate a model. The model will come out in a created folder called outputModels.

Maintenance

When working on the application and changes need to be made, install from requirements.txt to get PyInstaller included.

Make any changes required to the application and then you can rebuild the EXE by running:

pyinstaller --onefile .\PythonModelGenerator.py

This will create an updated EXE file in the dist folder. That can be included in the update and checked in.