Skip to main content

Publishes bank account transactions and balances via MQTT, Telegram and Pushover.

Project description


PushFin
=======

Setup
-----


#. Install pushfin: ``pip3 install pushfin``
#. Create configuration file at: ``~/.pushfin.yaml``. Take a look at the `example configuration <https://github.com/stv0g/pushfin/blob/master/etc/pushfin.yaml>`_.
#. Add pushfin to crontab: ``crontab -e``\ :

.. code-block::

12 * * * * pushfin
`

Transaction fields for formatting
---------------------------------

MT940
^^^^^

Standard transaction data is parsed by the `\ ``mt940`` Python Module <https://github.com/WoLpH/mt940>`_.

Common fields are listed below:

.. list-table::
:header-rows: 1

* - Formatting field
- Example value
- Description
* - ``trx[status]``
- 'D'
- 'D' = Debit, 'C' = Credit
* - ``trx[funds_code]``
- None
* - ``trx[id]``
- 'NMSC'
* - ``trx[customer_reference]``
- None
* - ``trx[bank_reference]``
- None
* - ``trx[extra_details]``
- ''
* - ``trx[currency]``
- 'EUR'
* - ``trx[date]``
-
- Unix Timestamp
* - ``trx[entry_date]``
-
- Unix Timestamp
* - ``trx[transaction_code]``
- '020'
* - ``trx[posting_text]``
- 'Überweisung'
* - ``trx[prima_nota]``
- '006200'
* - ``trx[purpose]``
- 'Kino Tickets'
* - ``trx[applicant_bin]``
- 'PBNABSEEFXXX'
* - ``trx[applicant_iban]``
- 'DE71235623523523523'
* - ``trx[applicant_name]``
- 'Max Mustermann'
* - ``trx[return_debit_notes]``
- None
* - ``trx[recipient_name]``
- None
* - ``trx[additional_purpose]``
- None
* - ``trx[gvc_applicant_iban]``
- None
* - ``trx[gvc_applicant_bin]``
- None
* - ``trx[end_to_end_reference]``
- None
* - ``trx[additional_position_reference]``
- None
* - ``trx[applicant_creditor_id]``
- None
* - ``trx[purpose_code]``
- None
* - ``trx[additional_position_date]``
- None
* - ``trx[deviate_applicant]``
- None
* - ``trx[deviate_recipient]``
- None
* - ``trx[FRST_ONE_OFF_RECC]``
- None
* - ``trx[old_SEPA_CI]``
- None
* - ``trx[old_SEPA_additional_position_reference]``
- None
* - ``trx[settlement_tag]``
- None
* - ``trx[debitor_identifier]``
- None
* - ``trx[compensation_amount]``
- None
* - ``trx[original_amount]``
- None


Extra fields
^^^^^^^^^^^^

For ease formatting, we extended the standard MT940 fields with the following helpers:

.. list-table::
:header-rows: 1

* - Formatting field
- Example value
- Description
* - ``trx[date_ts]``
- 1525007188
- A Unix timestamp of the ``date`` field
* - ``trx[date_fmt]``
- '2018-04-28'
- A formatted date of the ``date`` field
* - ``trx[entry_date_ts]``
- 1525007188
- A Unix timestamp of the ``entry_date`` field
* - ``trx[entry_date_fmt]``
- '2018-04-28'
- A formatted date of the ``entry_date`` field
* - ``trx[amout]``
- -20.42
- Just the amount of the transaction (see ``amount``\ )
* - ``trx[dir]``
- 'from'/'to'
-
* - ``trx[color]``
- '#009933'
-
* - ``bal[amount]``
- '3.52'
-
* - ``bal[currency]``
- 'EUR'
- Current balance valuta
* - ``bal[date]``
- '2018-03-23'
- Balance currency
* - ``bal[date_fmt]``
-
- Date of last valuta

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pushfin-0.2.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file pushfin-0.2.1.tar.gz.

File metadata

  • Download URL: pushfin-0.2.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pushfin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4ed2a31972b466f168ed56f2aabab39e0d51cafeeb773c2b7bdbe2aa321fca75
MD5 008f993cf3eb7d1627450132c074f61f
BLAKE2b-256 cae2da4c9dc8f543df5626a2f68a7bea522bb43a7b65116881b04e8f10c5fcca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page