Python bindings for Money Manager EX database library
Project description
MMEX Lib
Rust library for interacting with Money Manager EX data and logic, with UniFFI support for multi-language bindings.
⚠️ PROJECT STATUS: BETA This library is in beta phase. API changes may occur. Use with caution.
🌐 Documentación en Español (Spanish)
Toda la documentación detallada y guías en español están disponibles en: 👉 docs-es/README.md
🛠 Prerequisites
- Rust:
cargoinstalled. - Python 3.8+:
python3installed. - Kotlin/Java:
kotlincandjava(JRE) installed.
🚀 Quick Start (Python)
Option A: Automatic Setup (Recommended)
make setup
This will create a virtual environment, install dependencies, and build the library.
Option B: Manual Setup
-
Create a virtual environment:
python3 -m venv .venv source .venv/bin/activate
-
Install dependencies:
pip install maturin rich
-
Install the library:
maturin develop -
Usage:
import mmex_lib engine = mmex_lib.MmexEngine("my_finance.mmb", None)
🏗 Development
We use a Makefile to simplify common development tasks.
Installation & Build
make setup # Complete setup (venv + deps + lib)
make develop # Recompile after Rust changes
make build # Build release wheel
Running Tests
make test-rust # Rust unit and integration tests
make test-python # Python examples as integration tests
make test # Run all tests
Manual Binding Generation
To generate bindings for other languages (Kotlin, Swift, etc.):
cargo run --bin uniffi-bindgen generate --library target/debug/libmmex_lib.so --language <LANGUAGE> --out-dir <OUT_DIR>
📁 Project Structure
src/: Core logic in Rust (Domain, Infrastructure, Services).python/mmex_lib/: Python package wrapper.examples/: Usage examples in different languages.docs/: Technical documentation and plans.
⚠️ Troubleshooting
"externally-managed-environment" error
This happens when trying to install packages globally on modern Linux distributions. Always use a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
patchelf warning
Maturin may show a warning about patchelf. This doesn't affect local development. For wheel distribution:
sudo apt install patchelf
📄 License
Check the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mmex_lib-0.1.0b1.tar.gz.
File metadata
- Download URL: mmex_lib-0.1.0b1.tar.gz
- Upload date:
- Size: 16.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6da072e6da05ab2bd6cd14b0a394bbc0b2d9a7c676cbe6461ca085cae0687271
|
|
| MD5 |
7505d46e298ae7de313fdeb7109d414b
|
|
| BLAKE2b-256 |
d7d40ae6742157c98ecd2ca181e38fb05fe0561d3d96d7393e411212fe25b855
|
Provenance
The following attestation bundles were made for mmex_lib-0.1.0b1.tar.gz:
Publisher:
publish.yml on PatricioRios/mmex_lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmex_lib-0.1.0b1.tar.gz -
Subject digest:
6da072e6da05ab2bd6cd14b0a394bbc0b2d9a7c676cbe6461ca085cae0687271 - Sigstore transparency entry: 1231023627
- Sigstore integration time:
-
Permalink:
PatricioRios/mmex_lib@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Branch / Tag:
refs/tags/v0.1.0-beta.1 - Owner: https://github.com/PatricioRios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mmex_lib-0.1.0b1-py3-none-win_amd64.whl.
File metadata
- Download URL: mmex_lib-0.1.0b1-py3-none-win_amd64.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f8a1a7ab8f3020f179c1f4268b2d797a2b7a32b2081eec5050e46cc63b8aedf
|
|
| MD5 |
30c2130c02afa90047c1352f83a77e7f
|
|
| BLAKE2b-256 |
0168bb59e782aaf9bc39cc3f430d80cc80cbfe48c8f83063b64c426c8c648313
|
Provenance
The following attestation bundles were made for mmex_lib-0.1.0b1-py3-none-win_amd64.whl:
Publisher:
publish.yml on PatricioRios/mmex_lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmex_lib-0.1.0b1-py3-none-win_amd64.whl -
Subject digest:
7f8a1a7ab8f3020f179c1f4268b2d797a2b7a32b2081eec5050e46cc63b8aedf - Sigstore transparency entry: 1231023634
- Sigstore integration time:
-
Permalink:
PatricioRios/mmex_lib@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Branch / Tag:
refs/tags/v0.1.0-beta.1 - Owner: https://github.com/PatricioRios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mmex_lib-0.1.0b1-py3-none-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: mmex_lib-0.1.0b1-py3-none-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: Python 3, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ef7a27779efcc4142c9e9c5c506ffdf0b9cbb68557e5d4d9f21c5ff3513eb93
|
|
| MD5 |
ad3de44ec7d30af714903e37125aa90f
|
|
| BLAKE2b-256 |
e836362983f595fc3d91316cdf06d172e15253ff31c59bc970a5699029ea13b4
|
Provenance
The following attestation bundles were made for mmex_lib-0.1.0b1-py3-none-manylinux_2_28_x86_64.whl:
Publisher:
publish.yml on PatricioRios/mmex_lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmex_lib-0.1.0b1-py3-none-manylinux_2_28_x86_64.whl -
Subject digest:
1ef7a27779efcc4142c9e9c5c506ffdf0b9cbb68557e5d4d9f21c5ff3513eb93 - Sigstore transparency entry: 1231023639
- Sigstore integration time:
-
Permalink:
PatricioRios/mmex_lib@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Branch / Tag:
refs/tags/v0.1.0-beta.1 - Owner: https://github.com/PatricioRios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mmex_lib-0.1.0b1-py3-none-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: mmex_lib-0.1.0b1-py3-none-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 3.9 MB
- Tags: Python 3, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a59cca5690acd008e932ed0aa0ad747c93bdb914c2b587d854a8f924b67ad586
|
|
| MD5 |
a3e0e4ddfaf4a8565e571bb6350bdb27
|
|
| BLAKE2b-256 |
16866d06c38d85f8328bb0bf8f796c12e49c54a4c095f31965b3fe9533c6f1ce
|
Provenance
The following attestation bundles were made for mmex_lib-0.1.0b1-py3-none-manylinux_2_28_aarch64.whl:
Publisher:
publish.yml on PatricioRios/mmex_lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmex_lib-0.1.0b1-py3-none-manylinux_2_28_aarch64.whl -
Subject digest:
a59cca5690acd008e932ed0aa0ad747c93bdb914c2b587d854a8f924b67ad586 - Sigstore transparency entry: 1231023641
- Sigstore integration time:
-
Permalink:
PatricioRios/mmex_lib@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Branch / Tag:
refs/tags/v0.1.0-beta.1 - Owner: https://github.com/PatricioRios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@64cb212ad9c81b2acbe6a30592fa2bb28fd3b940 -
Trigger Event:
release
-
Statement type: