Skip to main content

Ethereum transaction importer for Beancount

Project description

Ethereum transaction importer for Beancount

Configuration

Example of configuration file: config.json.

beancount-ethereum can load data from Etherscan or block explorers with similar API like Blockscout.

If you are using Etherscan, get your API key at https://etherscan.io/.

Install

Install beancount-ethereum:

pip install beancount-ethereum

To install from source:

pip install -e .

Usage

Download transactions to file:

beancount-ethereum --config=config.json --output-dir=downloads

Add importer to import configuration (example):

import beancount_ethereum

CONFIG = [
    beancount_ethereum.importer.Importer(config_path='config.json'),
]

Check with bean-identify:

bean-identify import_config.py downloads

Import transactions with bean-extract:

bean-extract -e test.beancount import_config.py downloads

Deploy

Deploy beancount-ethereum:

make deploy

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

beancount-ethereum-1.4.3.tar.gz (17.0 kB view hashes)

Uploaded Source

Built Distribution

beancount_ethereum-1.4.3-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

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