Beancount Importer for N26 CSV exports
Project description
Beancount N26 Importer
beancount-n26
provides a Beancount Importer for converting CSV exports of
N26 account summaries to the Beancount format.
Installation
$ pip install beancount-n26
In case you prefer installing from the Github repository, please note that
main
is the development branch so stable
is what you should be installing
from.
Usage
from beancount_n26 import N26Importer
CONFIG = [
N26Importer(
IBAN_NUMBER,
'Assets:N26',
language='en',
file_encoding='utf-8',
),
]
Classification
To classify specific recurring transactions automatically, you can specify an account_patterns
as follows:
from beancount_n26 import N26Importer
CONFIG = [
N26Importer(
IBAN_NUMBER,
'Assets:N26',
language='en',
file_encoding='utf-8',
account_patterns={
"Expenses:Food:Restaurants": [
"amorino",
"five guys.*",
]
}
),
]
The keys should be accounts
while the items in the list are regular expressions that should match a payee
.
Some helper functions in beancount_n26/utils/patterns_generation.py
are here to help you generate this dictionnary.
Contributing
Please make sure you have Python 3.6+ and Poetry installed.
-
Git clone the repository -
git clone https://github.com/siddhantgoel/beancount-n26
-
Install the packages required for development -
poetry install
-
That's basically it. You should now be able to run the test suite -
poetry run py.test
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for beancount_n26-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce4bb32db446455d7c22d63ab7d8fa8b86ff53e3476d9807072997c73f69bc3 |
|
MD5 | 8c7d81e60ec96d1f0548484ac9317388 |
|
BLAKE2b-256 | a789374fbba2a8ecc8e4309d5a1a5a1c0c96a5dff4eeb9026d3fe1bd4eb0aa77 |