Skip to content

gentoo90/gnc_privat24

Repository files navigation

Gnucash Privat24 (Приват24) statements importer

This script imports statements from Privatbank (Приватбанк) client-bank into Gnucash book. Privatbank Autoclient API is described here.

Response fields mapped to gnucash fields:

  • BPL_REF + '.' + BPL_REFN - Transaction number
  • DATE_TIME_DAT_OD_TIM_P - Transaction date
  • BPL_OSND - Transaction description
  • BPL_SUM - Transaction value
  • AUT_MY_ACC and AUT_CNTR_ACC - Account codes (if account with the given code doen't exist it will be created under the root account with AUT_MY_NAM or AUT_CNTR_NAM as its name respectively)

Usage

You need to enable Autoclient in your account as described here.

$ gnc_privat24 --login <login in Privat24> --account <account number> --start <dd.mm.yyyy> [--end <dd.mm.yyyy>] <book.gnucash>

On the first run this will ask for autoclients id and token and store them in the keyring.

Dependencies

On Gentoo Linux you can install all of this by running:

$ sudo emerge -av app-office/gnucash dev-python/python-dateutil dev-python/requests dev-python/keyring
$ pip install --user schwifty

About

Imports Privat24 statements to Gnucash book

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published