SST: STEEM SteuerTool - Webservice

in utopian-io •  7 years ago  (edited)

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:

https://sst.steem.observer

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

It would be better if you listed the commits what you did and when.
Then it's easy to comprehend it

There was only one big change when writing the article, adding the Webservice folder as stated above.
Next features and updates will be covered with commit descriptions for this service.
As this was one big change I did not describe every commit necessary for it, but made this article instead, to cover the whole picture.
As last times update was denied, because it was to little, I made one that contains lots of changes and for better understanding I summarised it here.

This is a great service. What node do you use to retrieve all account transactions? I tried something similar with api.steemit.com, where some kind of pruning seems to happen. I was only able to get the transactions for the last few days.

What library are you using? Steem-python?
I am using beem and this has a way better node handling. Actually I am not sure what node it exactly uses.. But api.steemit.com is not high in ranking there afaik

Actually steemjs. I will look at how beem handles
this. Thanks for the tipp.

  ·  7 years ago (edited)

Beem uses in 0.19.21 the following nodes:

"wss://steemd.privex.io", "wss://steemd.pevo.science", "wss://rpc.buildteam.io", "wss://rpc.steemliberator.com", "wss://gtg.steem.house:8090",
 "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://steemd.steemgigs.org", "wss://steemd.minnowsupportproject.org", "https://rpc.buildteam.io",
"https://steemd.minnowsupportproject.org", "https://steemd.pevo.science", "https://rpc.steemviz.com", "https://seed.bitcoiner.me",
 "https://rpc.steemliberator.com", "https://steemd.privex.io", "https://gtg.steem.house:8090",
 "https://rpc.curiesteem.com", "https://steemd.steemgigs.org", "https://api.steemit.com", "wss://appbasetest.timcliff.com", "https://api.steem.house"

Beem switches automatically to the next node in this list, if an error occurs.

There is a https://discord.gg/4HM592V about beem now.

Thank you for your contribution.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Thanks

This post has received a 0.89 % upvote from @drotto thanks to: @isnochys.

This post has received a 0.80 % upvote from @speedvoter thanks to: @isnochys.

This post has been upvoted by @minibot with 100.0%!
Thank you for giving your trust and witness vote to my creator @isnochys!
More profits? 100% Payout! Delegate some SteemPower to @minibot: 1 SP, 5 SP, 10 SP, custom amount
You like to bet and win 20x your bid? Have a look at @gtw and this description!

This post has been upvoted by @millibot with 100.0%!
Thank you for giving your trust and witness vote to my creator @isnochys!
More profits? 100% Payout! Delegate some SteemPower to @millibot: 1 SP, 5 SP, 10 SP, custom amount
You like to bet and win 20x your bid? Have a look at @gtw and this description!

Hey @isnochys I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Utopian Witness!

Participate on Discord. Lets GROW TOGETHER!

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

_