SST, STEEM SteuerTool, helps collecting all necessary information to be able to use it for German tax forms
New Features
What feature(s) did you add?
SST moved to web service:
It is no longer necessary to execute the python scripts manually. User just need to enter their STEEM username and download the relevant CSV files. Files are listed as a complete history username_complete.csv or the yearly history username_year.csv.
Those files can be downloaded and used in any calculation program.
A German description can be found here: https://steemit.com/steuer/@isnochys/sst-das-steem-steuertool-webservice
How did you implement it/them?
For this new feature, the folder webservice was added to the repository. In it are all necessary files to use with Django webframework.
2 DB tables were created (sst/models.py):
- Userlist, containing all users that requested this service
- Rate, featuring historical exchange rates, currently only for SBD/STEEM to Euro
The webfrontend consists of one view, where user can enter their names and download fetched data sst/views.py, index. The template used for this view is under sst/templates/sst/index.html. Without POST data it shows the simple query form. Is POST data included in the request, username will be looked up in the DB. Any result younger 1 day will search for relevant csv files in media folder and display a link to all of them in the view.
New username will create a new DB entry with worker set to 1. Also if userdata is older 2 days, workerwill be set to 1.
worker.py is a Python script, that should be set to run every X minutes in crontab. It querys the DB for worker entries set to 1 and starts the creation of CSV files for found users.
rate_worker.py is needed to run once a day. It fetches the historical SBD/STEEM to Euro exchange rates for storage in the DB.
Repository
Source for this tool can be found under isnochys/steem_steuertool.
Contribution
Suggestions for new features, bug reporting, etc. are always welcome.
Especially layout and design improvements.
Posted on Utopian.io - Rewarding Open Source Contributors