Skip to main content

A personal finance accounting system.

Project description

Accounting System

1. Overview and Objectives

The goal of this system is to provide a robust personal finance tracking and reconciliation application. Users can track transactions across multiple accounts, import data from financial institutions, categorize expenses, and perform monthly (or periodic) reconciliations against bank statements. The design draws on double-entry accounting principles—ensuring data consistency, clarity of debits/credits, and the ability to generate meaningful financial reports.

Key Objectives

  1. Data Integrity
    • Use double-entry style transactions and splits.
    • Enforce referential integrity using foreign keys.
    • Prevent common data errors (e.g., mis-matched books for transaction vs. account).
  2. Easy Reconciliation
    • Mark transactions as cleared or reconciled within the system.
    • Provide a mechanism (triggers and foreign keys) to avoid mismatched or duplicated data.
  3. Flexibility and Extensibility
    • The schema uses UUID primary keys, making it easier to merge or migrate data.
    • The system can be adapted to different database backends (e.g., migrating from SQLite to PostgreSQL).
  4. Hierarchical Accounts
    • Support parent-child relationships among accounts (e.g., grouping categories under top-level accounts).
    • Allow organizing expense and income categories in a tree-like structure.
  5. Reporting
    • The schema supports queries and pivoting on accounts, transactions, and splits, essential for generating income/expense statements or custom reports.

2. Schema

3. System design

  • The application stores data in a SQLite Database identified by a DB URL provided as an argument.

4. Usage

usage: cli.py [-h] [--db-url DB_URL] {init-db,init-book,add-account,list-accounts,book-transaction} ...

Accounts CLI

positional arguments:
  {init-db,init-book,add-account,list-accounts,book-transaction}
    init-db             Initialize the DB schema (drop/create tables)
    init-book           Create a new Book if it doesn't exist
    add-account         Add an account to a given book
    list-accounts       List all accounts for a given book
    book-transaction    Create a transaction w/ two splits (debit & credit)

options:
  -h, --help            show this help message and exit
  --db-url, -u DB_URL   Database URL (default: sqlite:///db/accounting-system.db)

A. License

Copyright 2025 Edward Bridges

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

financial_accounts-0.0.5.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

financial_accounts-0.0.5-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file financial_accounts-0.0.5.tar.gz.

File metadata

  • Download URL: financial_accounts-0.0.5.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for financial_accounts-0.0.5.tar.gz
Algorithm Hash digest
SHA256 edc6df9b05d49f48711afa9c44121309f06c0ab391edb72e0ef8965de3b323ad
MD5 12019687201efac92414addf8360e3ac
BLAKE2b-256 79a222d0c57838d92af54adc8f663720fb9e6f4c983bed6acc5bcb9f194b6855

See more details on using hashes here.

Provenance

The following attestation bundles were made for financial_accounts-0.0.5.tar.gz:

Publisher: publish_on_tag.yml on ebridges/financial-accounts

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

File details

Details for the file financial_accounts-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for financial_accounts-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4a3f3604451c1159cc40ae280fa66f32db51036638e4607b82d8d2af30212ef3
MD5 094bd8fcaa6fbd98c464bc84a57b5b5c
BLAKE2b-256 290fe12ffdc7443b8c0a68f045bfcf4dd2f89289a269f4e2705b19069b36b5f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for financial_accounts-0.0.5-py3-none-any.whl:

Publisher: publish_on_tag.yml on ebridges/financial-accounts

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