internal 1.0.27__py3-none-any.whl → 1.0.29__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/base_factory.py CHANGED
@@ -55,8 +55,12 @@ class BaseFactory(metaclass=ABCMeta):
55
55
  if title is None:
56
56
  title = self.DEFAULT_APP_NAME
57
57
 
58
- app = FastAPI(openapi_url=self.get_app_config().OPEN_API_URL, title=title, debug=self.get_app_config().DEBUG,
59
- version=self.API_VERSION)
58
+ if self.get_app_config().DEBUG:
59
+ app = FastAPI(openapi_url=self.get_app_config().OPEN_API_URL, title=title,
60
+ debug=self.get_app_config().DEBUG, version=self.API_VERSION)
61
+ else:
62
+ app = FastAPI(openapi_url=self.get_app_config().OPEN_API_URL, title=title,
63
+ debug=self.get_app_config().DEBUG, version=self.API_VERSION, docs_url=None, redoc_url=None)
60
64
 
61
65
  origins = ["*"]
62
66
 
@@ -1,4 +1,5 @@
1
1
  from dataclasses import dataclass, asdict, fields
2
+ from typing import Optional
2
3
 
3
4
 
4
5
  @dataclass
@@ -9,4 +10,4 @@ class InternalBaseInterface:
9
10
  setattr(self, name, value)
10
11
 
11
12
  def to_dict(self):
12
- return asdict(self)
13
+ return {k: v for k, v in asdict(self).items() if v is not None}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 1.0.27
3
+ Version: 1.0.29
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=5-s2muyaLOGKhrq8kVqq0qaXFD09FrcQZCAFmw1FQtk,1755
3
- internal/base_factory.py,sha256=OeSgcQgObjYkLMjgG8LY4V2QDRd0esL1riQxg8cxnsk,8147
3
+ internal/base_factory.py,sha256=ZQtT0mFwzZGzvLmQ4n8yZXUFhEjFvnY8EA4Yx975lPU,8414
4
4
  internal/common_enum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  internal/common_enum/contact_type.py,sha256=7QkTQ71UxpaT1YHI40FpjmLz3r-UbRU-sd0m5ajH1as,142
6
6
  internal/common_enum/description_type.py,sha256=kGwkFQh6dMnjDl6ipWYpA-qbNRrhEpnPq3NleTsNwwk,118
@@ -20,13 +20,13 @@ internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  internal/http/requests.py,sha256=4Mdu_HIGDEgpgey8IPusqBn9s-3-oYGU0S49NK-khc4,1821
21
21
  internal/http/responses.py,sha256=SV9TZPNXZnzvPjEtvuHWcZT9tgY0U7N0H3P6fOZlWHk,2541
22
22
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
23
+ internal/interface/base_interface.py,sha256=92sZDc729PPQ62ezCAvTg7i1wP-Qmur3RO2NxoQUAqI,412
24
24
  internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  internal/middleware/log_request.py,sha256=bXAxmvvsYDhObXzfUw4ZNreKAWOo8ee_vpb6Xin5ztc,854
26
26
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  internal/model/base_model.py,sha256=Oc33c8AnPQcJEiEMQM_g3KT1b7iaa1IxgBMavds-_Ns,3010
28
28
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
29
29
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
30
- internal-1.0.27.dist-info/METADATA,sha256=qPVPYIGiPoEThd7Rqpldg6vcnx12wLKdCNNIZe4K_k0,625
31
- internal-1.0.27.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- internal-1.0.27.dist-info/RECORD,,
30
+ internal-1.0.29.dist-info/METADATA,sha256=kJHfOEe_LKIJHvMGkFSP20Cxh10AgmVG_bz-aSFSdYA,625
31
+ internal-1.0.29.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ internal-1.0.29.dist-info/RECORD,,