Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Created May 22, 2021 15:50
Show Gist options
  • Save anandtripathi5/259e91c80a3ba0d48c74c90615b8566f to your computer and use it in GitHub Desktop.
Save anandtripathi5/259e91c80a3ba0d48c74c90615b8566f to your computer and use it in GitHub Desktop.
Flask import configuration from toml file
import toml
from flask import Flask
app = Flask('__name__')
app.config.from_file('config.toml', toml.load)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment