Skip to main content

Importers, plugins and price fetchers for Beancount

Project description

https://img.shields.io/pypi/l/tariochbctools.svg https://img.shields.io/pypi/v/tariochbctools.svg

tariochbctools

Some importers, plugins and price fetchers for the double-entry bookkeeping software Beancount.

plugins

generate_base_ccy_prices

Dynamically generates prices to the base ccy by applying the fx rate to the base ccy for non base ccy prices

plugin "tariochbctools.plugins.generate_base_ccy_prices" "CHF"

price fetchers

alphavantage

Fetches prices from Alphavantage Requires the environment variable ALPHAVANTAGE_API_KEY to be set with your personal api key.

2019-01-01 commodity VWRL
  price: "CHF:tariochbctools.plugins.prices.alphavantage/VWRL.SW"

alphavantagefx

Fetches fx rates from Alphavantage Requires the environment variable ALPHAVANTAGE_API_KEY to be set with your personal api key.

2019-01-01 commodity BTC
  price: "CHF:tariochbctools.plugins.prices.alphavantagefx/BTC"

bitstamp

Fetches prices from Bitstamp

2019-01-01 commodity BTC
  price: "EUR:tariochbctools.plugins.prices.bitstamp/BTC"

exchangeratesapi

Fetches prices from exchangeratesapi.io

2019-01-01 commodity EUR
  price: "CHF:tariochbctools.plugins.prices.exchangeratesapi/EUR"

importers

bitstamp

Import transactions from Bitstamp

Create a file called bitstamp.yaml in your import location (e.g. downloads folder).

username: "12345"
key: "MyKey"
secret: "MySecret"
account: 'Assets:Bitstamp'
otherExpensesAccount: 'Expenses:Fee'
capGainAccount: 'Income:Capitalgain'
monthCutoff: 3
currencies:
  - eur
  - btc
from tariochbctools.importers.bitst import importer as bitstimp
CONFIG = [bitstimp.Importer()]

revolut

Import CSV from Revolut

from tariochbctools.importers.revolut import importer as revolutimp
CONFIG = [revolutimp.Importer('/Revolut-CHF.*\.csv', 'Assets:Revolut:CHF', 'CHF')]

transferwise

Import from Transferwise using their api

from tariochbctools.importers.transferwiseimport importer as twimp
CONFIG = [twimp.Importer()]

Create a file called transferwise.yaml in your import location (e.g. download folder).

token: <your api token>
baseAccount: <Assets:Transferwise:>

zkb

Import mt940 from Zürcher Kantonalbank

from tariochbctools.importers.zkb import importer as zkbimp
CONFIG = [zkbimp.ZkbImporter('/\d+\.mt940', 'Assets:ZKB')]

ibkr

Import transactions from Interactive Brokers

Create a file called ibkr.yaml in your import location (e.g. downloads folder).

token: <flex web query token>
queryId: <flex query id>
baseCcy: CHF

zak

Currently not working reliably. Import PDF from Bank Cler ZAK

mt940

Import Swift mt940 files.

schedule

Generate scheduled transactions.

Define a file called schedule.yaml in your import location (e.g. downloads folder). That describes the schedule transactions. They will be added each month at the end of the month.

transactions:
  - narration: 'Save'
    postings:
        - account: 'Assets:Normal'
          amount: '-10'
          currency: CHF
        - account: 'Assets:Saving'
from tariochbctools.importers.schedule import importer as scheduleimp
CONFIG = [ scheduleimp.Importer() ]

stocks

Planned rewrite. Generate transaction for dividend payments based on entering values in the command line.

Project details


Release history Release notifications | RSS feed

This version

0.4.0

Download files

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

Source Distribution

tariochbctools-0.4.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tariochbctools-0.4.0-py2.py3-none-any.whl (19.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tariochbctools-0.4.0.tar.gz.

File metadata

  • Download URL: tariochbctools-0.4.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for tariochbctools-0.4.0.tar.gz
Algorithm Hash digest
SHA256 890f05678de5b6c52f80474977769fbd6cfa834e5ebc2a33a6318bdf54f4498e
MD5 e1f4590a184ff5771bef54da49fe939b
BLAKE2b-256 25c812fc8f7e52c000131a9b4c4eab30ceb7f15d2444c1e1340860104b063639

See more details on using hashes here.

File details

Details for the file tariochbctools-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: tariochbctools-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for tariochbctools-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b31da0230384b7daefc6c3d60f1327ec4303131a473f9a990c8716b6d2b980fc
MD5 c192f1fc4d698477f66af4af77490eeb
BLAKE2b-256 691036e10228366c74fb24384fb3bad60640ac0588fa3d16899c91965085793c

See more details on using hashes here.

Supported by

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