oe-python-template-example 0.2.0__py3-none-any.whl → 0.2.2__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.
- oe_python_template_example/api.py +20 -15
- {oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/METADATA +1 -1
- {oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/RECORD +6 -6
- {oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/WHEEL +0 -0
- {oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/entry_points.txt +0 -0
- {oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/licenses/LICENSE +0 -0
@@ -18,9 +18,14 @@ from pydantic import BaseModel, Field
|
|
18
18
|
|
19
19
|
from oe_python_template_example import Service
|
20
20
|
|
21
|
+
TITLE = "OE Python Template Example"
|
21
22
|
HELLO_WORLD_EXAMPLE = "Hello, world!"
|
22
23
|
UVICORN_HOST = os.environ.get("UVICORN_HOST", "127.0.0.1")
|
23
24
|
UVICORN_PORT = os.environ.get("UVICORN_PORT", "8000")
|
25
|
+
CONTACT_NAME = "Helmut Hoffer von Ankershoffen"
|
26
|
+
CONTACT_EMAIL = "helmuthva@gmail.com"
|
27
|
+
CONTACT_URL = "https://github.com/helmut-hoffer-von-ankershoffen"
|
28
|
+
TERMS_OF_SERVICE_URL = "https://oe-python-template-example.readthedocs.io/en/latest/"
|
24
29
|
|
25
30
|
|
26
31
|
def get_service() -> Generator[Service, None, None]:
|
@@ -39,13 +44,13 @@ def get_service() -> Generator[Service, None, None]:
|
|
39
44
|
|
40
45
|
api = FastAPI(
|
41
46
|
root_path="/api",
|
42
|
-
title=
|
47
|
+
title=TITLE,
|
43
48
|
contact={
|
44
|
-
"name":
|
45
|
-
"email":
|
46
|
-
"url":
|
49
|
+
"name": CONTACT_NAME,
|
50
|
+
"email": CONTACT_EMAIL,
|
51
|
+
"url": CONTACT_URL,
|
47
52
|
},
|
48
|
-
terms_of_service=
|
53
|
+
terms_of_service=TERMS_OF_SERVICE_URL,
|
49
54
|
openapi_tags=[
|
50
55
|
{
|
51
56
|
"name": "v1",
|
@@ -68,24 +73,24 @@ api = FastAPI(
|
|
68
73
|
|
69
74
|
api_v1 = FastAPI(
|
70
75
|
version="1.0.0",
|
71
|
-
title=
|
76
|
+
title=TITLE,
|
72
77
|
contact={
|
73
|
-
"name":
|
74
|
-
"email":
|
75
|
-
"url":
|
78
|
+
"name": CONTACT_NAME,
|
79
|
+
"email": CONTACT_EMAIL,
|
80
|
+
"url": CONTACT_URL,
|
76
81
|
},
|
77
|
-
terms_of_service=
|
82
|
+
terms_of_service=TERMS_OF_SERVICE_URL,
|
78
83
|
)
|
79
84
|
|
80
85
|
api_v2 = FastAPI(
|
81
86
|
version="2.0.0",
|
82
|
-
title=
|
87
|
+
title=TITLE,
|
83
88
|
contact={
|
84
|
-
"name":
|
85
|
-
"email":
|
86
|
-
"url":
|
89
|
+
"name": CONTACT_NAME,
|
90
|
+
"email": CONTACT_EMAIL,
|
91
|
+
"url": CONTACT_URL,
|
87
92
|
},
|
88
|
-
terms_of_service=
|
93
|
+
terms_of_service=TERMS_OF_SERVICE_URL,
|
89
94
|
)
|
90
95
|
|
91
96
|
|
{oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template-example
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.2
|
4
4
|
Summary: 🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
|
5
5
|
Project-URL: Homepage, https://oe-python-template-example.readthedocs.io/en/latest/
|
6
6
|
Project-URL: Documentation, https://oe-python-template-example.readthedocs.io/en/latest/
|
{oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/RECORD
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
oe_python_template_example/__init__.py,sha256=-sCwS9lD6CvgWw88f7snBDF947PWIhEupJVebXL_w1M,314
|
2
|
-
oe_python_template_example/api.py,sha256=
|
2
|
+
oe_python_template_example/api.py,sha256=tYX07MjjmDJWMvxciwFbtuaB5CyptItqR5NyMNOmmqU,6291
|
3
3
|
oe_python_template_example/cli.py,sha256=BHuDCrzYkvJYDdvk06KwkK_sKQx7h7hhRiO0peQMM1s,3474
|
4
4
|
oe_python_template_example/constants.py,sha256=6uQHr2CRgzWQWhUQCRRKiPuFhzKB2iblZk3dIRQ5dDc,358
|
5
5
|
oe_python_template_example/service.py,sha256=XlCrklSRy8_YaYvlVYiDFPUubHHm-J8BPx2f7_niGG4,760
|
6
|
-
oe_python_template_example-0.2.
|
7
|
-
oe_python_template_example-0.2.
|
8
|
-
oe_python_template_example-0.2.
|
9
|
-
oe_python_template_example-0.2.
|
10
|
-
oe_python_template_example-0.2.
|
6
|
+
oe_python_template_example-0.2.2.dist-info/METADATA,sha256=8zcMaLotDzfyZLkVyc9MbZE4HIn0hqrLyXj9iceuo6M,21071
|
7
|
+
oe_python_template_example-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
oe_python_template_example-0.2.2.dist-info/entry_points.txt,sha256=S2eCPB45b1Wgj_GsDRFAN-e4h7dBA5UPxT8od98erDE,82
|
9
|
+
oe_python_template_example-0.2.2.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
10
|
+
oe_python_template_example-0.2.2.dist-info/RECORD,,
|
{oe_python_template_example-0.2.0.dist-info → oe_python_template_example-0.2.2.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|