A simple authorization API for Python