moneywiz-db-api
这是 moneywiz-api 的 fork 版本。 原项目已数月未更新,此版本用于持续维护和功能增强。感谢原作者 iLeoDo 的贡献。
A Python API to access MoneyWiz Sqlite database.
Get Started
pip install moneywiz-db-api
# 或使用 uv
uv add moneywiz-db-api
from pathlib import Path
from moneywiz_api import MoneywizApi
# macOS 默认数据库路径
DB_PATH = Path("~/Library/Containers/com.moneywiz.personalfinance"
"/Data/Documents/.AppData/ipadMoneyWiz.sqlite").expanduser()
with MoneywizApi(DB_PATH) as api:
# 获取所有交易
transactions = api.transaction_manager.get_all()
# 获取所有分类
categories = api.category_manager.get_all()
# 查询无分类交易
uncategorized = api.transaction_manager.get_uncategorized()
# 或指定其他路径
with MoneywizApi(Path("/path/to/ipadMoneyWiz.sqlite")) as api:
record = api.accessor.get_record(record_id)
print(record)
Interactive CLI
本包提供交互式命令行工具 moneywiz-cli:
# 使用默认数据库路径
moneywiz-cli
# 指定数据库路径
moneywiz-cli /path/to/moneywiz.sqlite
文档
完整接口参考(含所有 Manager 方法、数据模型字段、使用示例及 AI Agent 调用指引):
Contribution
This project is in very early stage, all contributions are welcomed!
Metadata
Release files for moneywiz-db-api 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| moneywiz_db_api-0.1.4.tar.gz | 18.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| moneywiz_db_api-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.2 kB
Release files / moneywiz_db_api-0.1.4.tar.gz
| Download URL | moneywiz_db_api-0.1.4.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
498bdbb1ac1ffbfc031de7d7df291ff92287855265b336e81c396afee1246c81
|
|
BLAKE2b-256 checksum How to use checksums |
aa4dca91b5ad8153231244f3dabcea1a9f3d42e04a40a08b2c1e593653f767de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 22, 2026.
Transparency logRelease files / moneywiz_db_api-0.1.4-py3-none-any.whl
| Download URL | moneywiz_db_api-0.1.4-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
426e555fd5d6cd75999536f91b8c83bcae104eecb20435526eed5b6443f4ce81
|
|
BLAKE2b-256 checksum How to use checksums |
edeb50f3b82f9b30c47ef5598e8cda6b22df6335cdf4628ed2f050095627bf53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 22, 2026.
Transparency log