Skip to main content

moneymanager-parser

CI PyPI Python versions

Typed Python SDK and offline CLI for Realbyte Money Manager .mmbak exports.

A .mmbak export is a ZIP-wrapped SQLite database. This package reads the export locally, resolves common schema aliases across app versions, and exposes transactions, flexible queries, schema inspection, categories, accounts, and currencies. Core parsing uses only the Python standard library. Income is exposed by the API, but expense-oriented analysis should treat it as informational because Money Manager exports can vary by installation.

The backup's currencies are read from the CURRENCY table when present. currency() returns the main currency (ISO, symbol, name); amounts are stored in the account/transaction currency and are not converted.

Soft-deleted rows (IS_DEL / C_IS_DEL) are excluded from all results. Account names resolve from the asset table (including the NIC_NAME nickname used by recent exports). When the asset table has an explicit balance column it is used as-is; otherwise accounts() reports a best-effort balance derived from transactions (income adds, expense subtracts, transfers move the amount to the destination account via toAssetUid). Derived balances are raw numeric sums with no currency conversion, so totals mixing currencies are not meaningful.

Safety

All connections are opened read-only (PRAGMA query_only=ON) and never contact external services. Archive members are size-checked before extraction to guard against decompression bombs, and all SQL identifiers read from the backup are quoted defensively.

Install

pip install moneymanager-parser

Quickstart

from moneymanager_parser import MoneyManagerBackup

with MoneyManagerBackup.from_file("backup.mmbak") as backup:
    main = backup.currency()
    if main:
        print(main.iso, main.symbol)
    for txn in backup.transactions():
        print(txn.date, txn.kind, txn.category, txn.amount)
    # Filter or group by account for account-specific totals.
    print(backup.query(month="2026-01", account="Credit Card", group_by="account").as_dict())
    print(backup.query(month="2026-01", top=10).as_dict())  # rows include account/to_account

Custom transaction type maps are supported:

MoneyManagerBackup.from_file("backup.mmbak", type_map={0: "income", 1: "expense", 7: "transfer"})

CLI

mmbak query backup.mmbak --month 2026-01 --account "Credit Card" --group-by account --top 10
mmbak schema backup.mmbak
mmbak currency backup.mmbak

All commands print JSON and never contact external services.

Development

python3 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
ruff check .
ruff format --check .
mypy src
pytest --cov

Contributing

Issues and pull requests are welcome. Please include tests for schema variants and avoid committing personal exports; test backups should be generated synthetically.

License

MIT © 2026 Shubham Sharma

Metadata

Release files for moneymanager-parser 0.4.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 moneymanager-parser 0.4.0
File Size Uploaded Provenance
moneymanager_parser-0.4.0.tar.gz 16.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for moneymanager-parser 0.4.0
File Interpreter ABI Platform
moneymanager_parser-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / moneymanager_parser-0.4.0.tar.gz

Download URL moneymanager_parser-0.4.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c1b084ec8e54e2da93cc2d30749a1ebc66f0c4b76db453619b3457e16502193f
BLAKE2b-256 checksum
How to use checksums
61a442740a1fb4c41cb53664452b5633ed46a22d5d90ff26839f5f093776c804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release files / moneymanager_parser-0.4.0-py3-none-any.whl

Download URL moneymanager_parser-0.4.0-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a664c9b4501e8e9c8552a6d860b1499ba53cf4a88b6167554169aab6cd0fa27
BLAKE2b-256 checksum
How to use checksums
f455cafafe3a9479793b371bfd9d049364cd329d7e47d77d6244dd5272ac1068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Security for moneymanager-parser 0.4.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for moneymanager_parser-0.4.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 Jul 6, 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.

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