fastapi-mongo-base 0.10.2__tar.gz → 0.10.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastapi_mongo_base-0.10.2/src/fastapi_mongo_base.egg-info → fastapi_mongo_base-0.10.4}/PKG-INFO +1 -1
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/pyproject.toml +1 -1
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/app_factory.py +4 -1
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/config.py +8 -2
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4/src/fastapi_mongo_base.egg-info}/PKG-INFO +1 -1
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/LICENSE.txt +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/README.md +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/setup.cfg +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/__init__.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/__init__.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/db.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/enums.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/exceptions.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/middlewares.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/models.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/routes.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/schemas.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/tasks.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/__init__.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/basic.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/bsontools.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/conditions.py +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base.egg-info/SOURCES.txt +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base.egg-info/dependency_links.txt +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base.egg-info/requires.txt +0 -0
- {fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base.egg-info/top_level.txt +0 -0
{fastapi_mongo_base-0.10.2/src/fastapi_mongo_base.egg-info → fastapi_mongo_base-0.10.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi-mongo-base
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.4
|
|
4
4
|
Summary: A simple boilerplate application, including models and schemas and abstract router, for FastAPI with MongoDB
|
|
5
5
|
Author-email: Mahdi Kiani <mahdikiany@gmail.com>
|
|
6
6
|
Maintainer-email: Mahdi Kiani <mahdikiany@gmail.com>
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "fastapi-mongo-base"
|
|
7
|
-
version = "0.10.
|
|
7
|
+
version = "0.10.4"
|
|
8
8
|
description = "A simple boilerplate application, including models and schemas and abstract router, for FastAPI with MongoDB"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/app_factory.py
RENAMED
|
@@ -62,6 +62,7 @@ def setup_middlewares(*, app: fastapi.FastAPI, origins: list = None, **kwargs):
|
|
|
62
62
|
allow_headers=["*"],
|
|
63
63
|
)
|
|
64
64
|
|
|
65
|
+
|
|
65
66
|
def create_app(
|
|
66
67
|
settings: Settings = None,
|
|
67
68
|
*,
|
|
@@ -100,7 +101,9 @@ def create_app(
|
|
|
100
101
|
origins = ["http://localhost:8000"]
|
|
101
102
|
|
|
102
103
|
if lifespan_func is None:
|
|
103
|
-
lifespan_func = lambda app: lifespan(
|
|
104
|
+
lifespan_func = lambda app: lifespan(
|
|
105
|
+
app=app, worker=worker, init_functions=init_functions, settings=settings
|
|
106
|
+
)
|
|
104
107
|
|
|
105
108
|
docs_url = f"{base_path}/docs"
|
|
106
109
|
openapi_url = f"{base_path}/openapi.json"
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/config.py
RENAMED
|
@@ -56,15 +56,21 @@ class Settings(metaclass=Singleton):
|
|
|
56
56
|
"level": console_level,
|
|
57
57
|
"formatter": "standard",
|
|
58
58
|
},
|
|
59
|
+
"file": {
|
|
60
|
+
"class": "logging.FileHandler",
|
|
61
|
+
"level": file_level,
|
|
62
|
+
"filename": cls.base_dir / "logs" / "app.log",
|
|
63
|
+
"formatter": "standard",
|
|
64
|
+
},
|
|
59
65
|
},
|
|
60
66
|
"loggers": {
|
|
61
67
|
"": {
|
|
62
|
-
"handlers": ["console"],
|
|
68
|
+
"handlers": ["console", "file"],
|
|
63
69
|
"level": "INFO",
|
|
64
70
|
"propagate": True,
|
|
65
71
|
},
|
|
66
72
|
"httpx": {
|
|
67
|
-
"handlers": ["console"],
|
|
73
|
+
"handlers": ["console", "file"],
|
|
68
74
|
"level": "WARNING",
|
|
69
75
|
"propagate": False,
|
|
70
76
|
},
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4/src/fastapi_mongo_base.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi-mongo-base
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.4
|
|
4
4
|
Summary: A simple boilerplate application, including models and schemas and abstract router, for FastAPI with MongoDB
|
|
5
5
|
Author-email: Mahdi Kiani <mahdikiany@gmail.com>
|
|
6
6
|
Maintainer-email: Mahdi Kiani <mahdikiany@gmail.com>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/enums.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/exceptions.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/core/middlewares.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/__init__.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/basic.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/bsontools.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base/utils/conditions.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-0.10.2 → fastapi_mongo_base-0.10.4}/src/fastapi_mongo_base.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|