Skip to main content

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

Metadata

Release files for pushfin 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pushfin 0.2.1
File Size Uploaded
pushfin-0.2.1.tar.gz 5.1 kB Details

Release files / pushfin-0.2.1.tar.gz

Download URL pushfin-0.2.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4ed2a31972b466f168ed56f2aabab39e0d51cafeeb773c2b7bdbe2aa321fca75
BLAKE2b-256 checksum
How to use checksums
cae2da4c9dc8f543df5626a2f68a7bea522bb43a7b65116881b04e8f10c5fcca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page