Skip to main content

Typed parser and query SDK for Realbyte Money Manager .mmbak backups.

Project description

moneymanager-parser

CI PyPI

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, summaries, 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.

Install

After the first release:

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)
    print(backup.query(month="2026-01", group_by="category").as_dict())

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 --group-by category --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

Project details


Download files

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

Source Distribution

moneymanager_parser-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

moneymanager_parser-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file moneymanager_parser-0.1.0.tar.gz.

File metadata

  • Download URL: moneymanager_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for moneymanager_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0e2aee63f2495f127b29d01b41a2876b1041e5e13713187abdfcdf353e364469
MD5 2de1b42dc4f16db7c02f3af6934817f0
BLAKE2b-256 88f38c42f03b7292cd7139ae21b3b6ce30aea27920c737858aa0730f7096ed83

See more details on using hashes here.

Provenance

The following attestation bundles were made for moneymanager_parser-0.1.0.tar.gz:

Publisher: release.yml on shubham1172/moneymanager-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moneymanager_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moneymanager_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ee79a206f5d699a69a0bd86d4c7df425eb4b7e5264dfd8b2b948eaeba5c40fe
MD5 929443aded9e7358d663b917aa176d4c
BLAKE2b-256 ac5441011ea061c9aa441b3591cae60da12ffbbe8ad844ec25fb4d684dac7232

See more details on using hashes here.

Provenance

The following attestation bundles were made for moneymanager_parser-0.1.0-py3-none-any.whl:

Publisher: release.yml on shubham1172/moneymanager-parser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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