A modular Flask core for CTF war-games, originally created for CS6443
Project description
Flask Core
This is a reusable core used to back COMP6443 applications.
Overview
Flask Core is intended to be an installable Pip package to which Flask blueprints can be attached to.
Configuration Variables
TBA
Config Environment Variables
Flask Core accepts some configuration through environment variables.
FLAG
FLAG_SECRET
DB_CONNECTION_STRING
Required
URI used to connect to a database.
Example:
postgres://root:root@localhost/test
FLASK_CORE_CONFIG
Default: None
When pointed to a valid pyconf file, this sets the contained options within Flask and Flask Core.
Example pyconf:
THEME = "flatly"
TITLE = "A Title"
FLASK_CORE_ENABLE_AUTH
Default: True
Enforces user authentication.
FLASK_CORE_ENABLE_ISOLATION
Default: True
Isolates each user's database connection. Depends on user's authentication to function.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask-core-1.0.0.tar.gz
(9.7 kB
view hashes)
Built Distribution
flask_core-1.0.0-py3-none-any.whl
(14.5 kB
view hashes)
Close
Hashes for flask_core-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9f13a70fa766f0ceae676326928ccef4cf0fe3e35f21c32160d3572b3f1b3eb |
|
MD5 | c285d2ab5029ad156f68b22e42d7d5af |
|
BLAKE2b-256 | 2e67c8447eefd8f100c36e26abf9031900038cba5f3fa1cef3b547b37b80c3e6 |