The discord logbot for paranoid people
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

46 lines
986 B

import click
import viewer
import logger
import db
import eralchemy
from flask_frozen import Freezer
def cli():
def gen_erd():
"""Generate the database ERD using ERAlchemy."""
eralchemy.render_er(db.Base, "erd.png")
def freeze():
"""Freeze the viewer data using Frozen-Flask.
Output data will be in the build/ directory."""["FREEZER_RELATIVE_URLS"] = True
freezer = Freezer(
with click.progressbar(
item_show_func=lambda p: p.url if p else 'Done!') as urls:
for url in urls:
def run_logger():
"""Start the logger."""
def run_viewer():
"""Run the debugging server.
You generally do NOT want to call this command in production. Run viewer:app in a WSGI server instead.
if __name__ == "__main__":