Skip to content

Instantly share code, notes, and snippets.

View claudioacioli's full-sized avatar
💾
Do you remember?

Claudio Acioli claudioacioli

💾
Do you remember?
  • Mercado Na Rede
  • Brasilia
View GitHub Profile
@claudioacioli
claudioacioli / app.py
Created March 14, 2020 17:24
An example on how to reload Flask app in runtime
"""
This is an example on how to reload Flask app in runtime
It can be useful for the use case where you want to enable/disable blueprints/routes dynamically.
To run the app:
> pip install flask & python app.py
Then test it via curl