skip to navigation
skip to content

ToLedger 2017.4.21

Convert bank statements to Ledger

# ToLedger
ToLedger originated as a personal project to convert my bank statements
to the open source [ledger]( format. I have made
some changes to make it more generally applicable, allowing for other
banks to be added.

Currently this library is only known to work with the export files of
ING Bank (NL) and Bitstamp, but extending it for similar CSV exports
should be trivial.

Usage: <format> [options] <format> [options] <input> <format> [options] <input> <output> (-h | --help)

-a --append Append to the output file if it exists.
-b --balance Get the initial balance (if possible)
--from=<from> Account to get balances from.
--to=<to> Account to send transactions to.
--name=<name> Account name.
--hash Save a hash of the transaction for duplicate removal
-c --code Use the currency code, e.g. EUR
-s --symbol Use the currency symbol, e.g. €
-h --help Show the usage guidelines.

## Installation
Apart from downloading this repository, you can install the latest
release with ``pip install toledger``

## Contributing
If you wish to contribute to this project, here's a feature wishlist:

+ Add different formats for different banks
(see toledger/
+ Interactive mode, manually adding and changing transaction details
+ Smart transaction labeling, based on specification files or existing
Ledger files
+ Checking the output file for duplicates
+ Convert to using a Ledger library for Python, instead of writing
directly to files (better and more output formatting options)
+ Save the meta information in the output file
+ Python 2 compatibility
+ Unit tests
+ Any other suggestions are also welcome, especially if they improve
extensibility and compatibility

There are also some design conventions:

+ [PEP 8]( (within reason)
+ All options should be reachable from the command line, using
+ [stdin and stdout compatibility](
+ Error handling with
[built-in exceptions](
(with custom messages)  
File Type Py Version Uploaded on Size (md5) Source 2017-04-21 7KB