maleo-foundation 0.1.20__py3-none-any.whl → 0.1.22__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  from fastapi import FastAPI
2
2
  from pydantic import BaseModel, Field
3
- from typing import List, Optional, Sequence
3
+ from typing import List, Optional
4
4
  from maleo_foundation.middlewares.authentication import Backend, add_authentication_middleware
5
5
  from maleo_foundation.middlewares.base import add_base_middleware, RequestProcessor
6
6
  from maleo_foundation.middlewares.cors import add_cors_middleware
@@ -49,25 +49,8 @@ class MiddlewareManager:
49
49
  authentication_backend:Optional[Backend] = None,
50
50
  request_processor:Optional[RequestProcessor] = None
51
51
  ):
52
- self.add_cors(
53
- allow_origins=self._configurations.general.allow_origins,
54
- allow_methods=self._configurations.general.allow_methods,
55
- allow_headers=self._configurations.general.allow_headers,
56
- allow_credentials=self._configurations.general.allow_credentials,
57
- expose_headers=self._configurations.cors.expose_headers
58
- )
59
- self.add_base(
60
- logger=loggers.base,
61
- allow_origins=self._configurations.general.allow_origins,
62
- allow_methods=self._configurations.general.allow_methods,
63
- allow_headers=self._configurations.general.allow_headers,
64
- allow_credentials=self._configurations.general.allow_credentials,
65
- limit=self._configurations.base.limit,
66
- window=self._configurations.base.window,
67
- cleanup_interval=self._configurations.base.cleanup_interval,
68
- ip_timeout=self._configurations.base.ip_timeout,
69
- request_processor=request_processor
70
- )
52
+ self.add_cors()
53
+ self.add_base(logger=loggers.base, request_processor=request_processor)
71
54
  if authentication_backend is None:
72
55
  self._authentication_backend = Backend(logger=loggers.authentication, key=key)
73
56
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo_foundation
3
- Version: 0.1.20
3
+ Version: 0.1.22
4
4
  Summary: Foundation package for Maleo
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: MIT
@@ -31,7 +31,7 @@ maleo_foundation/expanded_types/service.py,sha256=q8jpKdbCbLWwH1UPQavKpVE14rC5rv
31
31
  maleo_foundation/expanded_types/token.py,sha256=4fRTJw6W5MYq71NksNrWNi7qYHQ4_lQwfu9WxwrMipc,355
32
32
  maleo_foundation/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  maleo_foundation/managers/db.py,sha256=Jf0w-9JOAG5X2quDxqqw6d2WUIX7MYGdlPGxWP0rxHs,4699
34
- maleo_foundation/managers/middleware.py,sha256=nEhNgvGpvzQ2CouU8dgNe4eBKtYHkihHSHA6yhxR_2k,5461
34
+ maleo_foundation/managers/middleware.py,sha256=uwCKIL7vPGDt4L7uH7ZOdeKZytby1bgTNUOTWQs3tv8,4526
35
35
  maleo_foundation/managers/service.py,sha256=RSjaJDjrvzfTE2z0IYpzJMKYnl4BFaF7UEPl3uupH5k,19215
36
36
  maleo_foundation/managers/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  maleo_foundation/managers/client/base.py,sha256=K8AFV2MTZrC1jbTqxkx7eedmxodJirNIjoRXGGcppy4,1022
@@ -83,7 +83,7 @@ maleo_foundation/utils/logging.py,sha256=MwvZmZSA8SIdfq-knEvpYIgqnSpHcyHrZY9TVHW
83
83
  maleo_foundation/utils/query.py,sha256=ODQ3adOYQNj5E2cRW9ytbjBz56nEDcnfq8mQ6YZbCCM,4375
84
84
  maleo_foundation/utils/formatter/__init__.py,sha256=iKf5YCbEdg1qKnFHyKqqcQbqAqEeRUf8mhI3v3dQoj8,78
85
85
  maleo_foundation/utils/formatter/case.py,sha256=TmvvlfzGdC_omMTB5vAa40TZBxQ3hnr-SYeo0M52Rlg,1352
86
- maleo_foundation-0.1.20.dist-info/METADATA,sha256=mdOFrN9SO_ckBh80_c1scxXWrxxv6_d7YCT05VUY0QQ,3190
87
- maleo_foundation-0.1.20.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
88
- maleo_foundation-0.1.20.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
89
- maleo_foundation-0.1.20.dist-info/RECORD,,
86
+ maleo_foundation-0.1.22.dist-info/METADATA,sha256=MK5iu1Yso43P86J7LaFtbt_mwvZBesHvGcNeyP-uHjg,3190
87
+ maleo_foundation-0.1.22.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
88
+ maleo_foundation-0.1.22.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
89
+ maleo_foundation-0.1.22.dist-info/RECORD,,