Cost basis calculator for blockchain assets.
Project description
What's this?
Cost basis calculation library and HTTP API. Most useful for blockchain-backed assets like bitcoin.
Requirements and python deps
python3 is required. Flask is required for running the HTTP endpoints. Basis calculation code uses dateutil.
Running the code
Running and testing the api server in development mode from source:
virtualenv -p python3 venv
source ./venv/bin/activate
# Creating and activating a virtual environment above is optional and recommended
./setup.py install
python -m yabc_api.yabc_api
Running the docker image
make build
make run
Notes
File structure inspired by source and test layout of python modules sshuttle and flask.
Distributing
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
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
yabc-0.0.3.tar.gz
(7.4 kB
view hashes)
Built Distributions
yabc-0.0.3-py3.6.egg
(18.9 kB
view hashes)
yabc-0.0.3-py3.5.egg
(19.0 kB
view hashes)
yabc-0.0.3-py3-none-any.whl
(12.5 kB
view hashes)