[UPD] Added api to create Library

This commit is contained in:
2026-02-15 10:36:37 +01:00
parent bb8324ad1d
commit c468f51672
17 changed files with 142 additions and 9 deletions

14
main.py
View File

@@ -0,0 +1,14 @@
__version__ = "0.2.0.dev"
from app import app
from app.config import config
import logging
level = config["App"].get("debug", False) and logging.DEBUG or logging.INFO
logging.basicConfig(level=level)
logger = logging.getLogger(__name__)
logger.info(f"Logging level set to {level}")
if __name__ == "__main__":
app.run(port=config["App"]["port"], debug=config["App"]["debug"])