So it was off to look at what others have made with a heavy eye towards Flask based solutions so it matched the same framework we were already using. Flask-Analytics came up in a search. The simple design was something I liked but the extension was more so aimed at using cookies to track users through an application while we want to track overall usage. I figured it was time to roll something ourselves and provide it back out to the community if they could use it as well.
2 thoughts on “Introducing Flask-Track-Usage”
Nice tool. All my Flask app already use MongoDB, so that works well. Any thoughts on how to then analyse the results of the stored data in the Collection? Perhaps a sample Flask web site in the repo that does some basic work? I’m happy to help out, but was wondering what your thoughts were.
The readthedocs site does have example code showing how to use the library. In terms of how to show the results, it depends on the backend storage used. One backend is MongoDB but other storage backends are available. We so provide a ger_usage method as part of Storage instances as a way to do a basic usage query. If you have specific requests please feel free to open up issues against the GitHub repo and/or send patches. I always enjoy collaborating with new people :-).