flask-track-usage
flask-track-usage copied to clipboard
Speculative features for (much) later versions
These are just thoughts for future releases; in no particular order. I figured I'd document them somewhere. I'm not going to work on any of them right now :).
- Use threading for storage so that a slow DB connection does not slow down Flask.
- Modify the Mongo updates (for summaries) so that the increment is more atomic; should scale better.
- Add Writers for feeding data much more advanced analytics products:
- Matomo (via API or MySQL)
- Sawmill (via API)
- AWStats, which is done via a Apache Access Log, which leads us to....
- Add
ApacheAccessLogWriter
, which writes a standard apache log to a text file - Add a HTTP-Status-Code summary, to see 404s etc.
- Add summary for GeoLocation
- Put
sumBasic
back in (does the basic 5 as a single line.)
- Add Flask's built-in session cookie to the usage log.
- Put documentation for writing one's own summary back in.
- Make a YouTube tutorial video on that.
- When using "FREEGEOIP" store the actual coordinates in MongoEngine's geospatial
PointField
.- MongoDB ref: https://docs.mongodb.com/manual/reference/geojson/
- also add straight pymongo support
@JohnAD 2.0.0 went live. Let me know once you publish your video!
The video is now live! https://www.youtube.com/watch?v=r1wL0FVeLmA
I plan on adding another vid for the geolocation function in the next few weeks.
@JohnAD:
- https://stevemilner.org/2018/06/04/flask-track-usage-2-0-0-tutorial/
- https://twitter.com/ashcrow/status/1003690007331246083