Automated-Usage-Script-without-usermanager is a project mainly written in ..., it's free.
A mikrotik scripting setup for keeping track of user downloads from onboard the router itself.