Skip to main content

A Python api to access moneywiz sqlite database (fork of moneywiz-api)

Project description

moneywiz-db-api

这是 moneywiz-api 的 fork 版本。 原项目已数月未更新,此版本用于持续维护和功能增强。感谢原作者 iLeoDo 的贡献。

Static Badge PyPI

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

moneywiz_db_api-0.1.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

moneywiz_db_api-0.1.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

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

Hashes for moneywiz_db_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 400fa440da65faa13adba69002831a76c13843b98a66554f97c3f515dbfb4b8a
MD5 daf32782f8b990973831c5e8e5120414
BLAKE2b-256 99563065d2116ffe438cae15a0f2422824a0f249170f18347b7175ad6d291e68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for moneywiz_db_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09b7a1f9358ec808d6418ddf824f87de7252cc4cbb5fe0e4dd67e22dabd27e76
MD5 1af6ec4b84adb7ad1dcacc7708b87c98
BLAKE2b-256 0cf2c1b1a22719ec00336f56e4c573fb45f24afaec61b195a557e23bab9d6145

See more details on using hashes here.

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