Mainly changes to incorporate using MySQL as a storage backend and a few minor updates to Redis. To accomplish the update, I made some fairly sizeable changes to the project structure to facilitate.
Changes
moved flask_test_usage out of the src directory as it was causing problems for me
The pip redis package was updated to version 3. redis does not interpret the data anymore but relies on the user, so using json to store and retrieve dict objects
The project I'm using this for uses the flask factory which required some updates to track_usage.init_app
Added the track_var to the sqlstorage hooks
Used pipenv for managing packages, may want to ignore these based on how the distribution is setup
Mainly changes to incorporate using MySQL as a storage backend and a few minor updates to Redis. To accomplish the update, I made some fairly sizeable changes to the project structure to facilitate.
Changes
flask_test_usage
out of thesrc
directory as it was causing problems for meredis
package was updated to version 3.redis
does not interpret the data anymore but relies on the user, so usingjson
to store and retrieve dict objectstrack_usage.init_app
track_var
to thesqlstorage
hookspipenv
for managing packages, may want to ignore these based on how the distribution is setup