A Python api to access moneywiz sqlite database (fork of moneywiz-api)
Project description
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 moneywiz_api import MoneywizApi
# 使用默认 macOS MoneyWiz 数据库路径
with MoneywizApi() as api:
# 获取所有交易
transactions = api.transaction_manager.get_all()
# 获取所有分类
categories = api.category_manager.get_all()
# 查询无分类交易
uncategorized = api.transaction_manager.get_uncategorized_transactions()
# 或指定数据库路径
with MoneywizApi("<path_to_your_sqlite_file>") as api:
record = api.accessor.get_record(record_id)
print(record)
Interactive CLI
本包提供交互式命令行工具 moneywiz-cli:
# 使用默认数据库路径
moneywiz-cli
# 指定数据库路径
moneywiz-cli /path/to/moneywiz.sqlite
Contribution
This project is in very early stage, all contributions are welcomed!
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
Built Distribution
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 moneywiz_db_api-0.1.0.tar.gz.
File metadata
- Download URL: moneywiz_db_api-0.1.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400fa440da65faa13adba69002831a76c13843b98a66554f97c3f515dbfb4b8a
|
|
| MD5 |
daf32782f8b990973831c5e8e5120414
|
|
| BLAKE2b-256 |
99563065d2116ffe438cae15a0f2422824a0f249170f18347b7175ad6d291e68
|
File details
Details for the file moneywiz_db_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: moneywiz_db_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b7a1f9358ec808d6418ddf824f87de7252cc4cbb5fe0e4dd67e22dabd27e76
|
|
| MD5 |
1af6ec4b84adb7ad1dcacc7708b87c98
|
|
| BLAKE2b-256 |
0cf2c1b1a22719ec00336f56e4c573fb45f24afaec61b195a557e23bab9d6145
|