fastapi-basic 0.0.0__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 fastapi-basic might be problematic. Click here for more details.
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from abc import ABCMeta, abstractmethod
|
|
2
|
+
|
|
3
|
+
from fastapi import FastAPI
|
|
4
|
+
|
|
5
|
+
class BaseFactory(metaclass=ABCMeta):
|
|
6
|
+
@abstractmethod
|
|
7
|
+
def get_app_config(self):
|
|
8
|
+
"""
|
|
9
|
+
Each factory should define what config it wants.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def create_app(self):
|
|
13
|
+
"""
|
|
14
|
+
Create an application instance.
|
|
15
|
+
"""
|
|
16
|
+
settings = self.get_app_config()
|
|
17
|
+
app = FastAPI(docs_url=settings.get('DOCS_URL'), redoc_url=settings.get('REDOC_URL'), openapi_url=settings.get('OPENAPI_URL'))
|
|
18
|
+
return app
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: fastapi_basic
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: A short description of your module
|
|
5
|
+
Home-page: https://github.com/szx21023/fastapi-base
|
|
6
|
+
Author: szx21023
|
|
7
|
+
Author-email: szx21023@gmail.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: requests
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: requires-dist
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
# fastapi-base
|
|
25
|
+
|
|
26
|
+
python setup.py sdist bdist_wheel
|
|
27
|
+
twine upload dist/*
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
fastapi_basic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
fastapi_basic/base_config.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
fastapi_basic/base_factory.py,sha256=Rr9ofM4c_JYmN6RVgsH8YmECjaLkcxAOrnmVQGnQ9Mg,524
|
|
4
|
+
fastapi_basic-0.0.0.dist-info/METADATA,sha256=152B6mla123zlyNh_hJ38lp7JEM5RlzxQeS7Sierrhg,704
|
|
5
|
+
fastapi_basic-0.0.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
6
|
+
fastapi_basic-0.0.0.dist-info/top_level.txt,sha256=Q9PdwWxaB4dy135MQHiroRYOqArdUSaIeEkzYinN6W0,14
|
|
7
|
+
fastapi_basic-0.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fastapi_basic
|