Widevine Utility Website and Remote Widevine Device API.
- Install Python Poetry: https://python-poetry.org/docs/master/#installation
poetry install
- Add Secret and OAuth Keys to
config.py
- Run database migrations
You can now run the server with poetry run serve
.
For local development testing, you will need to disable the HTTPS requirement on the OAuth Callback URLs
with the environment variable OAUTHLIB_INSECURE_TRANSPORT=1
or you will get the error InsecureTransportError
.
For Unix: export OAUTHLIB_INSECURE_TRANSPORT=1
For Windows (CMD): set OAUTHLIB_INSECURE_TRANSPORT=1
For Windows (Powershell): $env:OAUTHLIB_INSECURE_TRANSPORT=1
poetry run setup
Example deploy command for staging:
poetry run gunicorn -w 1 -b 0.0.0.0:8081 getwvkeys.main:app