fastapi-mongo-base 1.3.4__tar.gz → 1.3.5__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-1.3.4/src/fastapi_mongo_base.egg-info → fastapi_mongo_base-1.3.5}/PKG-INFO +1 -1
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/pyproject.toml +1 -1
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/exceptions.py +8 -3
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5/src/fastapi_mongo_base.egg-info}/PKG-INFO +1 -1
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/LICENSE.txt +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/MANIFEST.in +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/README.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/boilerplate.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/changelog.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/contributing.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/endpoints.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/extra.css +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/index.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/installation.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/license.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/quickstart.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/settings.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/tutorial.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/docs/usage.md +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/mkdocs.yml +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/pytest.ini +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/setup.cfg +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/__init__.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/__init__.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/app_factory.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/config.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/db.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/enums.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/errors/mongodb_errors.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/errors/resource_errors.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/models.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/py.typed +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/routes.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/schemas.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/sql.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/tasks.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/__init__.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/basic.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/bsontools.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/timezone.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/usso_routes.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/SOURCES.txt +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/dependency_links.txt +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/requires.txt +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/top_level.txt +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/__init__.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/app/__init__.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/app/logs/app.log +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/app/main.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/app/server.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/conftest.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/test_apis.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/test_app.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/test_mongodb_errors.py +0 -0
- {fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/tests/test_resource_errors.py +0 -0
{fastapi_mongo_base-1.3.4/src/fastapi_mongo_base.egg-info → fastapi_mongo_base-1.3.5}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi-mongo-base
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.5
|
|
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 = "1.3.
|
|
7
|
+
version = "1.3.5"
|
|
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.10"
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/exceptions.py
RENAMED
|
@@ -100,8 +100,13 @@ def base_http_exception_handler(
|
|
|
100
100
|
logging.debug("base_http_exception_handler: %s\n%s", request.url, exc)
|
|
101
101
|
|
|
102
102
|
if request.headers.get("accept-language"):
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
locales = request.headers.get("accept-language").split(",")
|
|
104
|
+
msg = {}
|
|
105
|
+
for locale in locales:
|
|
106
|
+
lang = locale.split("-")[0]
|
|
107
|
+
if lang in exc.message:
|
|
108
|
+
msg[lang] = exc.message.get(lang)
|
|
109
|
+
message = msg
|
|
105
110
|
else:
|
|
106
111
|
message = exc.message
|
|
107
112
|
|
|
@@ -109,7 +114,7 @@ def base_http_exception_handler(
|
|
|
109
114
|
status_code=exc.status_code,
|
|
110
115
|
content={
|
|
111
116
|
"message": message,
|
|
112
|
-
"
|
|
117
|
+
"error_code": exc.error_code,
|
|
113
118
|
"detail": exc.detail,
|
|
114
119
|
**exc.data,
|
|
115
120
|
},
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5/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: 1.3.
|
|
3
|
+
Version: 1.3.5
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/__init__.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/core/app_factory.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/bsontools.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/timezone.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base/utils/usso_routes.py
RENAMED
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/requires.txt
RENAMED
|
File without changes
|
{fastapi_mongo_base-1.3.4 → fastapi_mongo_base-1.3.5}/src/fastapi_mongo_base.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|