Add argument parser and toml-based config file

- Create a common argument interface and config file format for both
  cli and flask version of application.
- Bumped the python version constraint to ^3.11 in order to use the
  native tomllib for reading config file.
- Move all the flask specific code under `worblehat.flaskapp`
This commit is contained in:
2023-05-06 17:18:35 +02:00
parent 9b96875346
commit 30ee10ec0c
20 changed files with 221 additions and 60 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ flask = "^2.2.2"
flask-admin = "^1.6.1"
flask-sqlalchemy = "^3.0.3"
isbnlib = "^3.10.14"
python = "^3.10"
python = "^3.11"
python-dotenv = "^1.0.0"
sqlalchemy = "^2.0.8"
@@ -22,7 +22,7 @@ werkzeug = "^2.3.3"
[tool.poetry.scripts]
cli = "worblehat.cli.main:main"
dev = "worblehat.wsgi_dev:main"
dev = "worblehat.flaskapp.wsgi_dev:main"
[build-system]
requires = ["poetry-core"]