Transform finance data from CSV into LDG assisted by AI.
Go to file
felixm 5cf06b2031 Add feature to add descriptions and clean up code. 2024-04-20 09:07:58 -04:00
src Add feature to add descriptions and clean up code. 2024-04-20 09:07:58 -04:00
.gitignore Initial commit 2023-06-18 17:03:48 +02:00
LICENSE Initial commit 2023-06-18 17:03:48 +02:00
Pipfile Refactor ledger processing to explicit mapping which will make automated classfication easy 2023-06-24 22:54:31 +02:00
Pipfile.lock Refactor ledger processing to explicit mapping which will make automated classfication easy 2023-06-24 22:54:31 +02:00
README.md Add feature to add descriptions and clean up code. 2024-04-20 09:07:58 -04:00
toldg.py Add feature to add descriptions and clean up code. 2024-04-20 09:07:58 -04:00

README.md

ledgerai

Script to transform CSV data into ledger accounting files.

Usage

Run pipenv install -dev to install all packages.

Run pipenv shell to get venv shell.

Run pipenv install <package> to install a package.

Architecture

The script takes a directory in which it recursively searches for CSV and LDG files. From these files, it generates a single ledger accounting file that includes all transactions.

Ledger files are appended to the output file without modifications.

However, the transaction for the CSV files are extended with their account2 information, i.e, the category of the transaction. Optionally, these transactions can also get a more meaningful description and tags.

The mapping information are stored in a file mappings.json. It maps a unique identifier for each transaction (based on the filename and full CSV row) to a respective account2.