Monkey patch example of how to use python and mysql through the QuotaGuard Static proxy.
Tested to work with Python 3
Install the pips in the requirements.txt file: pip install -r requirements.txt
Setup the environment variables QUOTAGUARDSTATIC_URL from the quotaguard dashboard. For example: http://username:password@hostname.quotaguard.com:9293
NOTE: HTTP and SOCKS urls are fine, app.py will handle either.
Setup your database connection environment variable DATABASE. For example: mysql://username:password@database.hostname.com:3306/database-name
Run the application: python app.py