Importers, plugins and price fetchers for Beancount
Project description
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.transferwise import 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:>
TrueLayer
Import from TrueLayer using their api services. e.g. supports Revolut. You need to create a dev account and see their documentation about how to get a refresh token.
from tariochbctools.importers.truelayer import importer as tlimp CONFIG = [tlimp.Importer()]
Create a file called truelayer.yaml in your import location (e.g. download folder).
baseAccount: <Assets:MyBank:> client_id: <CLIENT ID> client_secret: <CLIENT SECRET> refresh_token: <REFRESH TOKEN>
zkb
Import mt940 from Zürcher Kantonalbank
from tariochbctools.importers.zkb import importer as zkbimp CONFIG = [zkbimp.ZkbImporter('/\d+\.mt940', 'Assets:ZKB')]
ibkr
Import dividends 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
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
File details
Details for the file tariochbctools-0.5.1.tar.gz
.
File metadata
- Download URL: tariochbctools-0.5.1.tar.gz
- Upload date:
- Size: 13.6 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.45.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2cd295cc45df96f9da05d4b2101fc4b6bce0447ba056d0762beefc7b9f2559e9
|
|
MD5 |
490cf8b6fd4b1379c4f874aa4b650b21
|
|
BLAKE2b-256 |
2f61490c7c30fc0a2d5983657f1a8fb5cef57d1300840257bf505c12ae3951a4
|
File details
Details for the file tariochbctools-0.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: tariochbctools-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 20.4 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.45.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ddedd8185d211fe574aefc12ebfd63926d45fef7631f6af395c9ad11fd9d82ec
|
|
MD5 |
77483df02ec9268cf071176f5c3042f1
|
|
BLAKE2b-256 |
465d1d1fc5732c2971afc9aef48f70fc09600b6d0f5c0d6612556d821633f1f1
|