{"id":25208053,"url":"https://github.com/copelco/copeland-ledger","last_synced_at":"2025-04-05T04:19:11.248Z","repository":{"id":275305785,"uuid":"925702185","full_name":"copelco/copeland-ledger","owner":"copelco","description":"My tools for tracking expenses using beancount: Double-Entry Accounting from Text Files.","archived":false,"fork":false,"pushed_at":"2025-03-22T14:57:28.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T15:29:21.244Z","etag":null,"topics":["beancount","double-entry-accounting","plaintext-accounting","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/copelco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T14:35:40.000Z","updated_at":"2025-03-22T14:57:31.000Z","dependencies_parsed_at":"2025-02-01T15:35:25.708Z","dependency_job_id":"938f36c8-fad2-4379-81e8-6de3aea8aa94","html_url":"https://github.com/copelco/copeland-ledger","commit_stats":null,"previous_names":["copelco/copeland-ledger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copelco%2Fcopeland-ledger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copelco%2Fcopeland-ledger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copelco%2Fcopeland-ledger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/copelco%2Fcopeland-ledger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/copelco","download_url":"https://codeload.github.com/copelco/copeland-ledger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247285531,"owners_count":20913834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beancount","double-entry-accounting","plaintext-accounting","python"],"created_at":"2025-02-10T12:18:25.307Z","updated_at":"2025-04-05T04:19:11.243Z","avatar_url":"https://github.com/copelco.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copeland-ledger\n\nMy tools for tracking expenses using beancount: Double-Entry Accounting from\nText Files. This project uses the following packages:\n\n- [Beancount](https://beancount.github.io/) (3.0): Double-Entry Accounting from Text Files\n- [Beangulp](https://github.com/beancount/beangulp): Importers framework for Beancount\n- [ofxtools](https://github.com/csingley/ofxtools): Python library for working with OFX files\n- [Fava](https://beancount.github.io/fava/): Web interface for Beancount\n\n## Setup\n\n1. Configure your Python environment:\n\n   ```shell\n   # example .envrc file if you use direnv\n   layout python python3.12\n\n   export $LEDGER_HOME=~/path/to/your/ledger/directory\n   ```\n\n2. Install the required dependencies.\n\n   Here we are using `-e`, for [\"editable\n   mode\"](https://pip.pypa.io/en/latest/topics/local-project-installs/#editable-installs),\n   so that when our code is modified, the changes automatically apply.\n\n   ```shell\n   pip install -e \".[dev]\"\n   ```\n\n3. Create a configuration file for your accounts.\n\n   ```yaml\n   # example $LEDGER_HOME/accounts.yaml\n   accounts:\n     - bean_account: Assets:US:Ally:Checking\n       org: Ally\n       acctid_suffix: \"1111\"\n   ```\n\n4. Import data using the instructions below.\n\n5. Run fava!\n\n   ```shell\n   fava $LEDGER_HOME/ledger.beancount\n   ```\n\n## Import data\n\nDownload files manually to `$LEDGER_HOME/downloads` and verify the data:\n\n```shell\nbeangulp-import --config=$LEDGER_HOME/accounts.yaml beangulp identify $LEDGER_HOME/downloads\n```\n\nPreview the data:\n\n```shell\nbean-pod preview transactions.qfx\n```\n\nExtract the data:\n\n```shell\nbeangulp-import --config=$LEDGER_HOME/accounts.yaml beangulp extract $LEDGER_HOME/downloads\n```\n\nCheck the data:\n\n```shell\nbean-check $LEDGER_HOME/ledger.beancount\n```\n\nArchive the data:\n\n```shell\nbeangulp-import --config=$LEDGER_HOME/accounts.yaml beangulp archive $LEDGER_HOME/downloads --destination=$LEDGER_HOME/documents\n```\n\nFetch latest price of stocks:\n\n```shell\nbean-price $LEDGER_HOME/ledger.beancount\nbean-price --update $LEDGER_HOME/ledger.beancount\n```\n\n## Helpful Links\n\n- [Getting Started with Beancount](https://beancount.github.io/docs/getting_started_with_beancount.html)\n- https://github.com/pwalkr/beancount-utils/\n- [SQL queries for Beancount](https://aumayr.github.io/beancount-sql-queries/)\n- `SELECT last(date) as last_date, account GROUP BY account ORDER BY last_date DESC;`\n- https://plaintextaccounting.org/Mortgages#beancount\n- https://www.reddit.com/r/plaintextaccounting/comments/hlbb2q/new_to_ledger_tracking_investments_and_and_loans/\n- https://www.reddit.com/r/plaintextaccounting/comments/vd7gmg/how_do_you_handle_the_same_transaction_coming/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopelco%2Fcopeland-ledger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcopelco%2Fcopeland-ledger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcopelco%2Fcopeland-ledger/lists"}