Skip to main content

HeidiSQL Settings Export Parser

CI License: MIT

Parse a HeidiSQL settings export and print its connection settings in a readable form. The decoder targets the password representation used by HeidiSQL 12.x.

Security warning

HeidiSQL exports may contain database hosts, usernames, and recoverable passwords. Both password forms are hidden by default. Use --show-passwords only for authorized recovery: it prints recoverable credentials to stdout and warns on stderr. Keep exports and revealed output out of Git, logs, issues, screenshots, and chat transcripts. Even normal output contains private hosts and usernames.

Requirements

  • Python 3.10 or newer
  • uv
  • Git for installation from the GitHub source URL

Installation

For versions listed on PyPI, use uv tool install heidisql-settings-export-parser or uvx --from heidisql-settings-export-parser heidi-decode --help.

Install directly from the default branch on GitHub:

uv tool install git+https://github.com/alsd4git/heidisql-settings-export-parser.git
heidi-decode --help

For one-off use:

uvx --from git+https://github.com/alsd4git/heidisql-settings-export-parser.git heidi-decode export_heidi.txt

No packaged release has been published yet. Once a release exists, append its tag to the Git URL, for example @v0.1.0, to select that version. The release workflow builds wheel and source distributions without publishing to PyPI. Maintainers follow the release procedure to verify both artifacts and finalize the prepared notes in CHANGELOG.md before tagging.

Quickstart demo

The repository includes a synthetic export with a fake host, user, and password. It is safe for documentation and testing, but do not use this example as a real connection. HeidiSQL exports can contain recoverable credentials. Keep real exports and decoded output out of Git, logs, screenshots, and chat transcripts.

From a source checkout, run the parser on the example:

uv run heidi-decode examples/synthetic-export.txt

The command prints the connection settings with both password forms hidden. To regenerate the preview below, run the checked-out parser against the same synthetic export in a temporary working directory:

uv run python demos/render_quickstart.py

heidi-decode output for synthetic demo data

The preview comes from the parser's actual command-line entry point in heidi_decode.py. The renderer captures stdout and writes a deterministic SVG. It does not read any HeidiSQL export from your machine.

Usage

Pass the HeidiSQL export explicitly:

heidi-decode export_heidi.txt

For backward compatibility, omitting the argument still reads export_heidi.txt from the current directory:

heidi-decode

The command prints each connection and the settings it recognizes:

Connection name: dev_db
Host: localhost
Port: 3306
User: dev_user
Password (encoded): [hidden]
Password (decoded): [hidden]
Library:
ServerVersion:
ServerVersionFull:

Unknown settings and malformed lines are ignored. Missing fields are printed as blank values, except that both password fields remain hidden. To reveal them:

heidi-decode --show-passwords export_heidi.txt

The reveal option warns on stderr and prints both password representations to stdout. Malformed encodings cause an error before any connection is printed. Validate decoded passwords before relying on them with HeidiSQL versions other than 12.x.

Complete example

Given this export:

Servers\dev_db\Host<|||>1<|||>localhost
Servers\dev_db\Port<|||>1<|||>3306
Servers\dev_db\User<|||>1<|||>dev_user
Servers\dev_db\Password<|||>1<|||>6667786172637575797174662
Servers\prod_db\Host<|||>1<|||>prod.host.com
Servers\prod_db\Port<|||>1<|||>5432
Servers\prod_db\User<|||>1<|||>prod_user
Servers\prod_db\Password<|||>1<|||>7375726762736476767a7275673
Servers\prod_db\Library<|||>1<|||>libmariadb.dll
Servers\prod_db\ServerVersion<|||>1<|||>50154
Servers\prod_db\ServerVersionFull<|||>1<|||>5.1.54 - MySQL Community Server

the default command prints:

Connection name: dev_db
Host: localhost
Port: 3306
User: dev_user
Password (encoded): [hidden]
Password (decoded): [hidden]
Library:
ServerVersion:
ServerVersionFull:

Connection name: prod_db
Host: prod.host.com
Port: 5432
User: prod_user
Password (encoded): [hidden]
Password (decoded): [hidden]
Library: libmariadb.dll
ServerVersion: 50154
ServerVersionFull: 5.1.54 - MySQL Community Server

Input format

Each line uses this structure:

Servers\<connection name>\<setting><|||><datatype><|||><value>

Connection names must not contain a backslash. Settings can include Host, Port, User, Password, Library, ServerVersion, and ServerVersionFull. HeidiSQL preserves the numeric datatype field, but the parser does not use it.

Development

git clone https://github.com/alsd4git/heidisql-settings-export-parser.git
cd heidisql-settings-export-parser
uv sync --locked --dev
uv run heidi-decode --help
uv run ruff format --check heidi_decode.py tests
uv run ruff check --select E9,F63,F7,F82 heidi_decode.py tests
uv run python -m unittest discover -s tests -v
uv build

uv run heidi_decode.py remains supported for source checkouts, but the heidi-decode console entry point is the preferred user-facing interface.

Tests run on Linux, macOS, and Windows with Python 3.10–3.15. Formatting, static checks, and the build/install smoke test run once on Linux with Python 3.15.

License

MIT. See LICENSE.

Metadata

Release files for heidisql-settings-export-parser 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heidisql-settings-export-parser 0.1.0
File Size Uploaded Provenance Actions
heidisql_settings_export_parser-0.1.0.tar.gz 6.6 kB With provenance Details for heidisql_settings_export_parser-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heidisql-settings-export-parser 0.1.0
File Interpreter ABI Platform Actions
heidisql_settings_export_parser-0.1.0-py3-none-any.whl Python 3 none any Details for heidisql_settings_export_parser-0.1.0-py3-none-any.whl

Total release size: 12.9 kB

Release files / heidisql_settings_export_parser-0.1.0.tar.gz

Download URL heidisql_settings_export_parser-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d018f347f544c82c09c5472e34fb31b1865f254dd7e86d3b4dde776a72c4fb86
BLAKE2b-256 checksum
How to use checksums
708ea205a374c4a50d3f3b49b735b0210464666674fd1365893587482b572917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / heidisql_settings_export_parser-0.1.0-py3-none-any.whl

Download URL heidisql_settings_export_parser-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad823826b446fdaa2559e2e3976944df9e8821f4862be36bd0ae49d3e2fdc672
BLAKE2b-256 checksum
How to use checksums
6ba6b1a1821edce0e3a9fc7b36e3fc38ff9191ab57ea7be2dab6e3620ad77b43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for heidisql-settings-export-parser 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for heidisql_settings_export_parser-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page