fastapi-mongo-base 0.8.26__tar.gz → 0.8.28__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.
Files changed (29) hide show
  1. {fastapi_mongo_base-0.8.26/src/fastapi_mongo_base.egg-info → fastapi_mongo_base-0.8.28}/PKG-INFO +13 -9
  2. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/pyproject.toml +5 -3
  3. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/config.py +10 -11
  4. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28/src/fastapi_mongo_base.egg-info}/PKG-INFO +13 -9
  5. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base.egg-info/requires.txt +11 -7
  6. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/LICENSE.txt +0 -0
  7. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/README.md +0 -0
  8. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/setup.cfg +0 -0
  9. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/__init__.py +0 -0
  10. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/cached.py +0 -0
  11. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/__init__.py +0 -0
  12. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/app_factory.py +0 -0
  13. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/db.py +0 -0
  14. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/enums.py +0 -0
  15. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/exceptions.py +0 -0
  16. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/core/middlewares.py +0 -0
  17. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/handlers.py +0 -0
  18. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/models.py +0 -0
  19. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/routes.py +0 -0
  20. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/schemas.py +0 -0
  21. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/tasks.py +0 -0
  22. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/utils/__init__.py +0 -0
  23. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/utils/aionetwork.py +0 -0
  24. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/utils/basic.py +0 -0
  25. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/utils/bsontools.py +0 -0
  26. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base/utils/texttools.py +0 -0
  27. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base.egg-info/SOURCES.txt +0 -0
  28. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base.egg-info/dependency_links.txt +0 -0
  29. {fastapi_mongo_base-0.8.26 → fastapi_mongo_base-0.8.28}/src/fastapi_mongo_base.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: fastapi-mongo-base
3
- Version: 0.8.26
3
+ Version: 0.8.28
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>
@@ -46,15 +46,19 @@ Requires-Dist: pydantic>=1.8.2
46
46
  Requires-Dist: requests>=2.26.0
47
47
  Requires-Dist: pyjwt[crypto]
48
48
  Requires-Dist: singleton_package
49
- Provides-Extra: fastapi
50
- Requires-Dist: fastapi>=0.65.0; extra == "fastapi"
51
- Requires-Dist: uvicorn[standard]>=0.13.0; extra == "fastapi"
52
- Provides-Extra: django
53
- Requires-Dist: Django>=3.2; extra == "django"
54
- Provides-Extra: dev
55
- Requires-Dist: check-manifest; extra == "dev"
49
+ Requires-Dist: fastapi>=0.65.0
50
+ Requires-Dist: uvicorn[standard]>=0.13.0
51
+ Provides-Extra: image
52
+ Requires-Dist: Pillow>=9.0.0; extra == "image"
56
53
  Provides-Extra: test
57
54
  Requires-Dist: coverage; extra == "test"
55
+ Provides-Extra: image-similarity
56
+ Requires-Dist: numpy>=1.21.0; extra == "image-similarity"
57
+ Requires-Dist: imagededup>=0.3.0; extra == "image-similarity"
58
+ Provides-Extra: all
59
+ Requires-Dist: Pillow>=9.0.0; extra == "all"
60
+ Requires-Dist: numpy>=1.21.0; extra == "all"
61
+ Requires-Dist: imagededup>=0.3.0; extra == "all"
58
62
 
59
63
  # Fastapi Mongo
60
64
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fastapi-mongo-base"
7
- version = "0.8.26"
7
+ version = "0.8.28"
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"
@@ -31,9 +31,11 @@ dependencies = [
31
31
  "pydantic>=1.8.2",
32
32
  "requests>=2.26.0",
33
33
  "pyjwt[crypto]",
34
- "singleton_package"
34
+ "singleton_package",
35
+ "fastapi>=0.65.0",
36
+ "uvicorn[standard]>=0.13.0"
35
37
  ]
36
- optional-dependencies = {"fastapi" = ["fastapi>=0.65.0", "uvicorn[standard]>=0.13.0"],"django" = ["Django>=3.2"],"dev" = ["check-manifest"],"test" = ["coverage"]}
38
+ optional-dependencies = {"image" = ["Pillow>=9.0.0"],"test" = ["coverage"], "image-similarity" = ["numpy>=1.21.0", "imagededup>=0.3.0"], "all" = ["Pillow>=9.0.0", "numpy>=1.21.0", "imagededup>=0.3.0"]}
37
39
 
38
40
  [project.urls]
39
41
  "Homepage" = "https://github.com/mahdikiani/fastapi-mongo-base-app"
@@ -40,7 +40,7 @@ class Settings(metaclass=Singleton):
40
40
  return cls.base_dir / "htmlcov"
41
41
 
42
42
  @classmethod
43
- def get_log_config(cls, console_level: str = "INFO", file_level: str = "INFO"):
43
+ def get_log_config(cls, console_level: str = "INFO", file_level: str = "INFO", **kwargs):
44
44
  log_config = {
45
45
  "formatters": {
46
46
  "standard": {
@@ -60,18 +60,18 @@ class Settings(metaclass=Singleton):
60
60
  "filename": cls.base_dir / "logs" / "info.log",
61
61
  "formatter": "standard",
62
62
  },
63
- "httpx": {
64
- "class": "logging.StreamHandler",
65
- "level": "WARNING",
66
- "formatter": "standard",
67
- },
68
63
  },
69
64
  "loggers": {
70
65
  "": {
71
- "handlers": ["console", "file", "httpx"],
66
+ "handlers": ["console", "file"],
72
67
  "level": "INFO",
73
68
  "propagate": True,
74
- }
69
+ },
70
+ "httpx": {
71
+ "handlers": ["console", "file"],
72
+ "level": "WARNING",
73
+ "propagate": False,
74
+ },
75
75
  },
76
76
  "version": 1,
77
77
  }
@@ -79,7 +79,6 @@ class Settings(metaclass=Singleton):
79
79
 
80
80
  @classmethod
81
81
  def config_logger(cls):
82
- if not (cls.base_dir / "logs").exists():
83
- (cls.base_dir / "logs").mkdir()
84
-
82
+ (cls.base_dir / "logs").mkdir(parents=True, exist_ok=True)
83
+
85
84
  logging.config.dictConfig(cls.get_log_config())
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: fastapi-mongo-base
3
- Version: 0.8.26
3
+ Version: 0.8.28
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>
@@ -46,15 +46,19 @@ Requires-Dist: pydantic>=1.8.2
46
46
  Requires-Dist: requests>=2.26.0
47
47
  Requires-Dist: pyjwt[crypto]
48
48
  Requires-Dist: singleton_package
49
- Provides-Extra: fastapi
50
- Requires-Dist: fastapi>=0.65.0; extra == "fastapi"
51
- Requires-Dist: uvicorn[standard]>=0.13.0; extra == "fastapi"
52
- Provides-Extra: django
53
- Requires-Dist: Django>=3.2; extra == "django"
54
- Provides-Extra: dev
55
- Requires-Dist: check-manifest; extra == "dev"
49
+ Requires-Dist: fastapi>=0.65.0
50
+ Requires-Dist: uvicorn[standard]>=0.13.0
51
+ Provides-Extra: image
52
+ Requires-Dist: Pillow>=9.0.0; extra == "image"
56
53
  Provides-Extra: test
57
54
  Requires-Dist: coverage; extra == "test"
55
+ Provides-Extra: image-similarity
56
+ Requires-Dist: numpy>=1.21.0; extra == "image-similarity"
57
+ Requires-Dist: imagededup>=0.3.0; extra == "image-similarity"
58
+ Provides-Extra: all
59
+ Requires-Dist: Pillow>=9.0.0; extra == "all"
60
+ Requires-Dist: numpy>=1.21.0; extra == "all"
61
+ Requires-Dist: imagededup>=0.3.0; extra == "all"
58
62
 
59
63
  # Fastapi Mongo
60
64
 
@@ -2,16 +2,20 @@ pydantic>=1.8.2
2
2
  requests>=2.26.0
3
3
  pyjwt[crypto]
4
4
  singleton_package
5
+ fastapi>=0.65.0
6
+ uvicorn[standard]>=0.13.0
5
7
 
6
- [dev]
7
- check-manifest
8
+ [all]
9
+ Pillow>=9.0.0
10
+ numpy>=1.21.0
11
+ imagededup>=0.3.0
8
12
 
9
- [django]
10
- Django>=3.2
13
+ [image]
14
+ Pillow>=9.0.0
11
15
 
12
- [fastapi]
13
- fastapi>=0.65.0
14
- uvicorn[standard]>=0.13.0
16
+ [image-similarity]
17
+ numpy>=1.21.0
18
+ imagededup>=0.3.0
15
19
 
16
20
  [test]
17
21
  coverage