Skip to main content
logo

modelbaker - the library

The modelbaker library is a package containing two main areas:

  • Wrapper for ili2db iliwrapper
  • Modules to generate a QGIS project from it's database source and interacting with this source

This Library is the backend of the QGIS Plugin QGIS Model Baker.

Installation

pip install modelbaker

Structure

.
├── __init__.py
├── iliwrapper
│   ├── __init__.py
│   ├── globals.py
│   ├── ili2dbargs.py
│   ├── ili2dbconfig.py
│   ├── ili2dbtools.py
│   ├── ili2dbutils.py
│   ├── ilicache.py
│   ├── iliexecutable.py
│   ├── iliexporter.py
│   ├── iliimporter.py
│   ├── iliupdater.py
│   └── ilivalidator.py
├── dataobjects
│   ├── __init__.py
│   ├── fields.py
│   ├── form.py
│   ├── layers.py
│   ├── legend.py
│   ├── project.py
│   └── relations.py
├── dbconnector
│   ├── __init__.py
│   ├── config.py
│   ├── db_connector.py
│   ├── gpkg_connector.py
│   ├── mssql_connector.py
│   └── pg_connector.py
├── db_factory
│   ├── __init__.py
│   ├── db_command_config_manager.py
│   ├── db_factory.py
│   ├── db_simple_factory.py
│   ├── gpkg_command_config_manager.py
│   ├── gpkg_factory.py
│   ├── gpkg_layer_uri.py
│   ├── layer_uri.py
│   ├── mssql_command_config_manager.py
│   ├── mssql_factory.py
│   ├── mssql_layer_uri.py
│   ├── pg_command_config_manager.py
│   ├── pg_factory.py
│   └── pg_layer_uri.py
├── generator
│   ├── __init__.py
│   ├── config.py
│   ├── domain_relations_generator.py
│   └── generator.py
├── ilitoppingmaker
│   ├── __init__.py
│   ├── ili2dbsettings.py
│   ├── ilidata.py
│   ├── iliprojecttopping.py
│   ├── ilitarget.py
│   ├── metaconfig.py
└── utils
    ├── __init__.py
    ├── db_utils.py
    ├── globals.py
    ├── qgis_utils.py
    └── qt_utils.py

ili2db

In the current release we use ili2db version 4.10

Infos for Devs

Code style

Is enforced with pre-commit. To use, make:

pip install pre-commit
pre-commit install

And to run it over all the files (with infile changes):

pre-commit run --color=always --all-file

Needed packages from PyPI

Needed packages from PyPI are downloaded and packaged on deployment to the plugin's libs folder.

Run the script to download and unpack them or install them to your system.

Script:

./scripts/package_pip_packages.sh

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modelbaker-3.2.0.tar.gz (299.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modelbaker-3.2.0-py3-none-any.whl (276.9 kB view details)

Uploaded Python 3

File details

Details for the file modelbaker-3.2.0.tar.gz.

File metadata

  • Download URL: modelbaker-3.2.0.tar.gz
  • Upload date:
  • Size: 299.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for modelbaker-3.2.0.tar.gz
Algorithm Hash digest
SHA256 5b4957a35fffda1f449f04196593d153e22a919f343bb45d268cbb5c4ba9451c
MD5 9dcccbec2117ba2a0c17488848633000
BLAKE2b-256 e01835e55660f66effe60eb2693f58e2abb71fb3f3b4781f8284d895a7e40430

See more details on using hashes here.

File details

Details for the file modelbaker-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: modelbaker-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 276.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for modelbaker-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aadccef5ff957af60364995944898b57fca82b5009e6f23ed0b766b57a967f4
MD5 1434e908271332188c955d63bb6ad178
BLAKE2b-256 0c84369607f327669701118e939b2f90601c679ca4c77812af065b5cd0154dd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page