I want to save data between runs of my python
application (data should be the same for different users). The best way I have found was save it in file on disk. Directory /var/cache/my_package
looks good for this purposes, but I faced a few difficulty:
I have found data_file option in setuptools
but it can't help with points 2 and 3.
diskcache
does exactly what you are looking for!
Check out examples here: http://www.grantjenks.com/docs/diskcache/tutorial.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With