Dotvault for Flask

Dotvault for Flask apps.

Flask reads .env through python-dotenv, so the file is loaded before your app ever sees it and a typo shows up as a confusing runtime error rather than a config one. Dotvault gives you a visual editor for the file, and flags SECRET_KEY when it is missing, because a Flask app that uses sessions falls over without it.

What you get

  • Detects Flask from requirements.txt or pyproject.toml.
  • Recognises the FLASK_APP entry point and warns when SECRET_KEY is missing.
  • Knows the FLASK_RUN_ family for the dev server, plus DATABASE_URL and SQLALCHEMY_DATABASE_URI.
  • Snapshot history and diff across your development and production files.

Known environment variables

Dotvault recognises these variables when you open a Flask project and surfaces helpful descriptions and warnings in the editor. Flask is detected via flask in requirements.txt or pyproject.toml.

  • FLASK_APP

    Flask application entry point

  • FLASK_ENV

    Flask environment (development/production)

  • FLASK_DEBUG

    Debug mode toggle

  • FLASK_RUN_HOST

    Dev server host

  • FLASK_RUN_PORT

    Dev server port

  • FLASK_RUN_CERT

    SSL certificate for HTTPS dev server

  • FLASK_RUN_KEY

    SSL key for HTTPS dev server

  • SECRET_KEYRequired

    Session secret key

  • DATABASE_URL

    Database connection URL

  • SQLALCHEMY_DATABASE_URI

    SQLAlchemy database connection URI

Official Flask docs: flask.palletsprojects.com