fastapi-basic 0.0.0__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.

Potentially problematic release.


This version of fastapi-basic might be problematic. Click here for more details.

@@ -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,4 @@
1
+ # fastapi-base
2
+
3
+ python setup.py sdist bdist_wheel
4
+ twine upload dist/*
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,10 @@
1
+ README.md
2
+ setup.py
3
+ fastapi_basic/__init__.py
4
+ fastapi_basic/base_config.py
5
+ fastapi_basic/base_factory.py
6
+ fastapi_basic.egg-info/PKG-INFO
7
+ fastapi_basic.egg-info/SOURCES.txt
8
+ fastapi_basic.egg-info/dependency_links.txt
9
+ fastapi_basic.egg-info/requires.txt
10
+ fastapi_basic.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ requests
@@ -0,0 +1 @@
1
+ fastapi_basic
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,22 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name='fastapi_basic', # 模組名稱
5
+ version='0.0.0', # 版號版號
6
+ description='A short description of your module', # 模塊描述
7
+ long_description=open('README.md').read(), # 詳細描述,通常是 README 文件的内容
8
+ long_description_content_type='text/markdown', # markdown 格式
9
+ author='szx21023', # 作者訊息
10
+ author_email='szx21023@gmail.com', # 作者郵箱
11
+ url='https://github.com/szx21023/fastapi-base', # 項目連結
12
+ packages=find_packages(), # 自動查找包
13
+ classifiers=[ # 分類標籤
14
+ 'Programming Language :: Python :: 3',
15
+ 'License :: OSI Approved :: MIT License',
16
+ 'Operating System :: OS Independent',
17
+ ],
18
+ install_requires=[ # 依賴庫
19
+ 'requests',
20
+ ],
21
+ python_requires='>=3.6', # 支持的 Python 版本
22
+ )