jrieke / streamlit-analytics

👀 Track & visualize user interactions with your streamlit app
MIT License
264 stars 49 forks source link

Option to load from json to let user persist data between runs #10

Closed Uranium2 closed 2 years ago

Uranium2 commented 3 years ago

Adding data persistence from Json file.

Loads json file and copy data into counts just like firestone.load().

Added load_from_json argument in track() and start_tracking().

start_tracking() will load firebase AND/OR Json data. You can load, one, both or none.

Black the code to respect PEP 8 coding style.

jrieke commented 2 years ago

This looks great, sorry for the late reply! Made a few minor changes:

Merging!

Uranium2 commented 2 years ago

Nice!

Now I can update my requirements.txt to point on your newest version!

Thanks a lot!