fastapi_swagger2 0.3.1__tar.gz → 0.3.3__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.
- {fastapi_swagger2-0.3.1 → fastapi_swagger2-0.3.3}/PKG-INFO +53 -47
- {fastapi_swagger2-0.3.1 → fastapi_swagger2-0.3.3}/README.md +9 -1
- {fastapi_swagger2-0.3.1/fastapi_0.100.0 → fastapi_swagger2-0.3.3}/pyproject.toml +19 -21
- {fastapi_swagger2-0.3.1 → fastapi_swagger2-0.3.3}/src/fastapi_swagger2/__init__.py +2 -3
- fastapi_swagger2-0.3.3/src/fastapi_swagger2/_version.py +1 -0
- {fastapi_swagger2-0.3.1 → fastapi_swagger2-0.3.3}/src/fastapi_swagger2/utils.py +9 -8
- fastapi_swagger2-0.3.1/.flake8 +0 -2
- fastapi_swagger2-0.3.1/.gitignore +0 -163
- fastapi_swagger2-0.3.1/fastapi_0.100.0/.git +0 -1
- fastapi_swagger2-0.3.1/fastapi_0.100.0/.gitignore +0 -163
- fastapi_swagger2-0.3.1/fastapi_0.100.0/LICENSE +0 -21
- fastapi_swagger2-0.3.1/fastapi_0.100.0/README.md +0 -91
- fastapi_swagger2-0.3.1/fastapi_0.100.0/requirements-dev.txt +0 -1
- fastapi_swagger2-0.3.1/fastapi_0.100.0/requirements.txt +0 -1
- fastapi_swagger2-0.3.1/fastapi_0.100.0/scripts/build.sh +0 -3
- fastapi_swagger2-0.3.1/fastapi_0.100.0/scripts/clean.sh +0 -8
- fastapi_swagger2-0.3.1/fastapi_0.100.0/scripts/format.sh +0 -6
- fastapi_swagger2-0.3.1/fastapi_0.100.0/scripts/lint.sh +0 -9
- fastapi_swagger2-0.3.1/fastapi_0.100.0/scripts/publish.sh +0 -5
- fastapi_swagger2-0.3.1/fastapi_0.100.0/scripts/test.sh +0 -9
- fastapi_swagger2-0.3.1/fastapi_0.100.0/setup.cfg +0 -3
- fastapi_swagger2-0.3.1/fastapi_0.100.0/src/fastapi_swagger2/__init__.py +0 -145
- fastapi_swagger2-0.3.1/fastapi_0.100.0/src/fastapi_swagger2/constants.py +0 -2
- fastapi_swagger2-0.3.1/fastapi_0.100.0/src/fastapi_swagger2/models.py +0 -425
- fastapi_swagger2-0.3.1/fastapi_0.100.0/src/fastapi_swagger2/utils.py +0 -673
- fastapi_swagger2-0.3.1/pyproject.toml +0 -95
- fastapi_swagger2-0.3.1/requirements-dev.txt +0 -1
- fastapi_swagger2-0.3.1/requirements.txt +0 -1
- fastapi_swagger2-0.3.1/scripts/build.sh +0 -3
- fastapi_swagger2-0.3.1/scripts/clean.sh +0 -8
- fastapi_swagger2-0.3.1/scripts/format.sh +0 -6
- fastapi_swagger2-0.3.1/scripts/lint.sh +0 -9
- fastapi_swagger2-0.3.1/scripts/publish.sh +0 -5
- fastapi_swagger2-0.3.1/scripts/test.sh +0 -9
- fastapi_swagger2-0.3.1/setup.cfg +0 -3
- fastapi_swagger2-0.3.1/src/fastapi_swagger2_old/__init__.py +0 -145
- fastapi_swagger2-0.3.1/src/fastapi_swagger2_old/constants.py +0 -2
- fastapi_swagger2-0.3.1/src/fastapi_swagger2_old/models.py +0 -425
- fastapi_swagger2-0.3.1/src/fastapi_swagger2_old/utils.py +0 -673
- {fastapi_swagger2-0.3.1 → fastapi_swagger2-0.3.3}/LICENSE +0 -0
- {fastapi_swagger2-0.3.1 → fastapi_swagger2-0.3.3}/src/fastapi_swagger2/models.py +0 -0
|
@@ -1,71 +1,69 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: fastapi_swagger2
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Swagger2 support for FastAPI framework
|
|
5
|
-
|
|
6
|
-
Project-URL: Documentation, https://github.com/virajkanwade/fastapi_swagger2
|
|
5
|
+
Author: Viraj Kanwade
|
|
7
6
|
Author-email: Viraj Kanwade <virajk.oib@gmail.com>
|
|
8
7
|
License: MIT License
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2023 Viraj Kanwade
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
Classifier: Intended Audience :: Information Technology
|
|
29
|
+
Classifier: Intended Audience :: System Administrators
|
|
30
|
+
Classifier: Operating System :: OS Independent
|
|
31
|
+
Classifier: Programming Language :: Python :: 3
|
|
32
|
+
Classifier: Programming Language :: Python
|
|
33
|
+
Classifier: Topic :: Internet
|
|
34
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
35
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
36
|
+
Classifier: Topic :: Software Development
|
|
37
|
+
Classifier: Typing :: Typed
|
|
30
38
|
Classifier: Environment :: Web Environment
|
|
31
39
|
Classifier: Framework :: AsyncIO
|
|
32
40
|
Classifier: Framework :: FastAPI
|
|
33
41
|
Classifier: Framework :: Pydantic
|
|
34
42
|
Classifier: Framework :: Pydantic :: 1
|
|
35
43
|
Classifier: Intended Audience :: Developers
|
|
36
|
-
Classifier: Intended Audience :: Information Technology
|
|
37
|
-
Classifier: Intended Audience :: System Administrators
|
|
38
44
|
Classifier: License :: OSI Approved :: MIT License
|
|
39
|
-
Classifier: Operating System :: OS Independent
|
|
40
|
-
Classifier: Programming Language :: Python
|
|
41
|
-
Classifier: Programming Language :: Python :: 3
|
|
42
45
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
43
46
|
Classifier: Programming Language :: Python :: 3.9
|
|
44
47
|
Classifier: Programming Language :: Python :: 3.10
|
|
45
48
|
Classifier: Programming Language :: Python :: 3.11
|
|
46
49
|
Classifier: Programming Language :: Python :: 3.12
|
|
47
50
|
Classifier: Programming Language :: Python :: 3.13
|
|
48
|
-
Classifier: Topic :: Internet
|
|
49
|
-
Classifier: Topic :: Internet :: WWW/HTTP
|
|
50
51
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
51
|
-
Classifier: Topic ::
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
53
|
+
Requires-Dist: fastapi>=0.128.4
|
|
54
|
+
Requires-Dist: httpx>=0.28.1 ; extra == 'all'
|
|
55
|
+
Requires-Dist: ruff==0.14.10 ; extra == 'dev'
|
|
56
|
+
Requires-Dist: pytest>=7.0.0,<9.0.0 ; extra == 'test'
|
|
57
|
+
Requires-Dist: coverage[toml]>=6.0,<8.0 ; extra == 'test'
|
|
58
|
+
Requires-Dist: ty ; extra == 'test'
|
|
59
|
+
Requires-Dist: ruff==0.14.10 ; extra == 'test'
|
|
60
|
+
Requires-Dist: httpx>=0.28.1 ; extra == 'test'
|
|
55
61
|
Requires-Python: >=3.9
|
|
56
|
-
|
|
62
|
+
Project-URL: Homepage, https://github.com/virajkanwade/fastapi_swagger2
|
|
63
|
+
Project-URL: Documentation, https://github.com/virajkanwade/fastapi_swagger2
|
|
57
64
|
Provides-Extra: all
|
|
58
|
-
Requires-Dist: httpx>=0.28.1; extra == 'all'
|
|
59
65
|
Provides-Extra: dev
|
|
60
|
-
Requires-Dist: ruff==0.14.10; extra == 'dev'
|
|
61
66
|
Provides-Extra: test
|
|
62
|
-
Requires-Dist: black==25.12.0; extra == 'test'
|
|
63
|
-
Requires-Dist: coverage[toml]<8.0,>=7.13.1; extra == 'test'
|
|
64
|
-
Requires-Dist: httpx>=0.28.1; extra == 'test'
|
|
65
|
-
Requires-Dist: isort>=7.0.0; extra == 'test'
|
|
66
|
-
Requires-Dist: mypy==1.19.1; extra == 'test'
|
|
67
|
-
Requires-Dist: pytest<10.0.0,>=9.0.2; extra == 'test'
|
|
68
|
-
Requires-Dist: ruff==0.14.10; extra == 'test'
|
|
69
67
|
Description-Content-Type: text/markdown
|
|
70
68
|
|
|
71
69
|
# fastapi_swagger2
|
|
@@ -99,6 +97,8 @@ Python 3.9+
|
|
|
99
97
|
* 0.2.7 - FastAPI >= 0.100.0, < 0.119.0 + Pydantic v1/v2
|
|
100
98
|
* 0.3.0 - FastAPI >= 0.119.0, <= 0.123.8 + Pydantic v1/v2
|
|
101
99
|
* 0.3.1 - FastAPI >= 0.123.9, <= 0.127.1 + Pydantic v1/v2 (Since FastAPI 0.126.1, Pydantic v1 is deprecated)
|
|
100
|
+
* 0.3.2 - FastAPI >= 0.128.0, <= 0.128.3
|
|
101
|
+
* 0.3.3 - FastAPI >= 0.128.4, <= 0.128.8 (FastAPI has dropped Python 3.9 support since 0.129.1)
|
|
102
102
|
|
|
103
103
|
## Installation
|
|
104
104
|
|
|
@@ -110,6 +110,12 @@ $ pip install fastapi_swagger2
|
|
|
110
110
|
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
|
+
## Development
|
|
114
|
+
|
|
115
|
+
```console
|
|
116
|
+
$ uv sync --extra dev --extra test --extra all
|
|
117
|
+
```
|
|
118
|
+
|
|
113
119
|
## Example
|
|
114
120
|
|
|
115
121
|
```Python
|
|
@@ -159,5 +165,5 @@ print(yaml.dump(spec))
|
|
|
159
165
|
## Development
|
|
160
166
|
|
|
161
167
|
```console
|
|
162
|
-
$
|
|
168
|
+
$ uv sync --extra dev --extra test --extra all
|
|
163
169
|
```
|
|
@@ -29,6 +29,8 @@ Python 3.9+
|
|
|
29
29
|
* 0.2.7 - FastAPI >= 0.100.0, < 0.119.0 + Pydantic v1/v2
|
|
30
30
|
* 0.3.0 - FastAPI >= 0.119.0, <= 0.123.8 + Pydantic v1/v2
|
|
31
31
|
* 0.3.1 - FastAPI >= 0.123.9, <= 0.127.1 + Pydantic v1/v2 (Since FastAPI 0.126.1, Pydantic v1 is deprecated)
|
|
32
|
+
* 0.3.2 - FastAPI >= 0.128.0, <= 0.128.3
|
|
33
|
+
* 0.3.3 - FastAPI >= 0.128.4, <= 0.128.8 (FastAPI has dropped Python 3.9 support since 0.129.1)
|
|
32
34
|
|
|
33
35
|
## Installation
|
|
34
36
|
|
|
@@ -40,6 +42,12 @@ $ pip install fastapi_swagger2
|
|
|
40
42
|
|
|
41
43
|
</div>
|
|
42
44
|
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
```console
|
|
48
|
+
$ uv sync --extra dev --extra test --extra all
|
|
49
|
+
```
|
|
50
|
+
|
|
43
51
|
## Example
|
|
44
52
|
|
|
45
53
|
```Python
|
|
@@ -89,5 +97,5 @@ print(yaml.dump(spec))
|
|
|
89
97
|
## Development
|
|
90
98
|
|
|
91
99
|
```console
|
|
92
|
-
$
|
|
100
|
+
$ uv sync --extra dev --extra test --extra all
|
|
93
101
|
```
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["
|
|
3
|
-
build-backend = "
|
|
2
|
+
requires = ["uv_build>=0.9.23,<0.10.0"]
|
|
3
|
+
build-backend = "uv_build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "fastapi_swagger2"
|
|
7
|
+
version = "0.3.3"
|
|
7
8
|
description = "Swagger2 support for FastAPI framework"
|
|
8
9
|
readme = "README.md"
|
|
9
10
|
requires-python = ">=3.9"
|
|
@@ -39,9 +40,8 @@ classifiers = [
|
|
|
39
40
|
"Topic :: Internet :: WWW/HTTP",
|
|
40
41
|
]
|
|
41
42
|
dependencies = [
|
|
42
|
-
"fastapi >=0.
|
|
43
|
+
"fastapi >=0.128.4",
|
|
43
44
|
]
|
|
44
|
-
dynamic = ["version"]
|
|
45
45
|
|
|
46
46
|
[project.urls]
|
|
47
47
|
Homepage = "https://github.com/virajkanwade/fastapi_swagger2"
|
|
@@ -49,12 +49,10 @@ Documentation = "https://github.com/virajkanwade/fastapi_swagger2"
|
|
|
49
49
|
|
|
50
50
|
[project.optional-dependencies]
|
|
51
51
|
test = [
|
|
52
|
-
"pytest >=
|
|
53
|
-
"coverage[toml] >=
|
|
54
|
-
"
|
|
52
|
+
"pytest >=7.0.0,<9.0.0",
|
|
53
|
+
"coverage[toml] >= 6.0, < 8.0",
|
|
54
|
+
"ty",
|
|
55
55
|
"ruff ==0.14.10",
|
|
56
|
-
"black == 25.12.0",
|
|
57
|
-
"isort >=7.0.0",
|
|
58
56
|
"httpx >=0.28.1",
|
|
59
57
|
]
|
|
60
58
|
dev = [
|
|
@@ -64,29 +62,29 @@ all = [
|
|
|
64
62
|
"httpx >=0.28.1",
|
|
65
63
|
]
|
|
66
64
|
|
|
67
|
-
[tool.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[tool.isort]
|
|
71
|
-
profile = "black"
|
|
72
|
-
known_third_party = ["fastapi", "pydantic", "starlette"]
|
|
73
|
-
|
|
74
|
-
[tool.mypy]
|
|
75
|
-
strict = true
|
|
65
|
+
[tool.ruff]
|
|
66
|
+
line-length = 119
|
|
76
67
|
|
|
77
68
|
[tool.ruff.lint]
|
|
78
69
|
select = [
|
|
79
70
|
"E", # pycodestyle errors
|
|
80
71
|
"W", # pycodestyle warnings
|
|
81
72
|
"F", # pyflakes
|
|
82
|
-
|
|
73
|
+
"I", # isort
|
|
83
74
|
"C", # flake8-comprehensions
|
|
84
75
|
"B", # flake8-bugbear
|
|
85
76
|
]
|
|
86
77
|
ignore = [
|
|
87
|
-
"E501", # line too long, handled by
|
|
78
|
+
"E501", # line too long, handled by ruff format
|
|
88
79
|
"B008", # do not perform function calls in argument defaults
|
|
89
80
|
"C901", # too complex
|
|
90
81
|
]
|
|
91
82
|
per-file-ignores = { "__init__.py" = ["F401"] }
|
|
92
|
-
|
|
83
|
+
|
|
84
|
+
[tool.ruff.lint.isort]
|
|
85
|
+
known-third-party = ["fastapi", "pydantic", "starlette"]
|
|
86
|
+
|
|
87
|
+
[dependency-groups]
|
|
88
|
+
dev = [
|
|
89
|
+
"nox>=2025.11.12",
|
|
90
|
+
]
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
__version__ = "0.3.1"
|
|
2
|
-
|
|
3
1
|
from typing import Any, Dict, List, Optional, TypeVar
|
|
4
2
|
|
|
5
3
|
from fastapi import FastAPI
|
|
@@ -12,10 +10,11 @@ from starlette.requests import Request
|
|
|
12
10
|
from starlette.responses import HTMLResponse, JSONResponse, Response
|
|
13
11
|
from typing_extensions import Annotated, Doc, deprecated
|
|
14
12
|
|
|
13
|
+
from ._version import __version__
|
|
15
14
|
from .utils import get_swagger2
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
# Keep
|
|
17
|
+
# Keep type checker happy with the monkey patching
|
|
19
18
|
class FastAPIEx(FastAPI):
|
|
20
19
|
swagger2_url: Optional[str]
|
|
21
20
|
swagger2_tags: Optional[List[Dict[str, Any]]]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.3"
|
|
@@ -4,10 +4,10 @@ from typing import Any, Dict, List, Optional, Sequence, Set, Tuple, Type, Union
|
|
|
4
4
|
|
|
5
5
|
from fastapi import routing
|
|
6
6
|
from fastapi._compat import (
|
|
7
|
-
JsonSchemaValue,
|
|
8
7
|
ModelField,
|
|
9
|
-
get_compat_model_name_map,
|
|
10
8
|
get_definitions,
|
|
9
|
+
get_flat_models_from_fields,
|
|
10
|
+
get_model_name_map,
|
|
11
11
|
get_schema_from_model_field,
|
|
12
12
|
lenient_issubclass,
|
|
13
13
|
)
|
|
@@ -271,7 +271,7 @@ def get_swagger2_path(
|
|
|
271
271
|
route: routing.APIRoute,
|
|
272
272
|
operation_ids: Set[str],
|
|
273
273
|
model_name_map: ModelNameMap,
|
|
274
|
-
field_mapping: Dict[Tuple[ModelField, Literal["validation", "serialization"]],
|
|
274
|
+
field_mapping: Dict[Tuple[ModelField, Literal["validation", "serialization"]], dict[str, Any]],
|
|
275
275
|
separate_input_output_schemas: bool = True,
|
|
276
276
|
) -> Tuple[Dict[str, Any], Dict[str, Any], Dict[str, Any]]:
|
|
277
277
|
path: Dict[str, Any] = {}
|
|
@@ -373,9 +373,9 @@ def get_swagger2_path(
|
|
|
373
373
|
if isinstance(status_code_param.default, int):
|
|
374
374
|
status_code = str(status_code_param.default)
|
|
375
375
|
|
|
376
|
-
operation.setdefault("responses", {}).setdefault(status_code, {})[
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
operation.setdefault("responses", {}).setdefault(status_code, {})["description"] = (
|
|
377
|
+
route.response_description
|
|
378
|
+
)
|
|
379
379
|
|
|
380
380
|
if route_response_media_type and is_body_allowed_for_status_code(route.status_code):
|
|
381
381
|
response_schema = {"type": "string"}
|
|
@@ -499,7 +499,8 @@ def get_swagger2(
|
|
|
499
499
|
operation_ids: Set[str] = set()
|
|
500
500
|
|
|
501
501
|
all_fields = get_fields_from_routes(list(routes or []) + list(webhooks or []))
|
|
502
|
-
|
|
502
|
+
flat_models = get_flat_models_from_fields(all_fields, known_models=set())
|
|
503
|
+
model_name_map = get_model_name_map(flat_models)
|
|
503
504
|
field_mapping, definitions = get_definitions(
|
|
504
505
|
fields=all_fields,
|
|
505
506
|
model_name_map=model_name_map,
|
|
@@ -541,4 +542,4 @@ def get_swagger2(
|
|
|
541
542
|
|
|
542
543
|
output = _resolve_parameter_refs(output, definitions)
|
|
543
544
|
|
|
544
|
-
return jsonable_encoder(Swagger2(**output), by_alias=True, exclude_none=True)
|
|
545
|
+
return jsonable_encoder(Swagger2(**output), by_alias=True, exclude_none=True)
|
fastapi_swagger2-0.3.1/.flake8
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# C extensions
|
|
7
|
-
*.so
|
|
8
|
-
|
|
9
|
-
# Distribution / packaging
|
|
10
|
-
.Python
|
|
11
|
-
build/
|
|
12
|
-
develop-eggs/
|
|
13
|
-
dist/
|
|
14
|
-
downloads/
|
|
15
|
-
eggs/
|
|
16
|
-
.eggs/
|
|
17
|
-
lib/
|
|
18
|
-
lib64/
|
|
19
|
-
parts/
|
|
20
|
-
sdist/
|
|
21
|
-
var/
|
|
22
|
-
wheels/
|
|
23
|
-
share/python-wheels/
|
|
24
|
-
*.egg-info/
|
|
25
|
-
.installed.cfg
|
|
26
|
-
*.egg
|
|
27
|
-
MANIFEST
|
|
28
|
-
|
|
29
|
-
# PyInstaller
|
|
30
|
-
# Usually these files are written by a python script from a template
|
|
31
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
-
*.manifest
|
|
33
|
-
*.spec
|
|
34
|
-
|
|
35
|
-
# Installer logs
|
|
36
|
-
pip-log.txt
|
|
37
|
-
pip-delete-this-directory.txt
|
|
38
|
-
|
|
39
|
-
# Unit test / coverage reports
|
|
40
|
-
htmlcov/
|
|
41
|
-
.tox/
|
|
42
|
-
.nox/
|
|
43
|
-
.coverage
|
|
44
|
-
.coverage.*
|
|
45
|
-
.cache
|
|
46
|
-
nosetests.xml
|
|
47
|
-
coverage.xml
|
|
48
|
-
*.cover
|
|
49
|
-
*.py,cover
|
|
50
|
-
.hypothesis/
|
|
51
|
-
.pytest_cache/
|
|
52
|
-
cover/
|
|
53
|
-
|
|
54
|
-
# Translations
|
|
55
|
-
*.mo
|
|
56
|
-
*.pot
|
|
57
|
-
|
|
58
|
-
# Django stuff:
|
|
59
|
-
*.log
|
|
60
|
-
local_settings.py
|
|
61
|
-
db.sqlite3
|
|
62
|
-
db.sqlite3-journal
|
|
63
|
-
|
|
64
|
-
# Flask stuff:
|
|
65
|
-
instance/
|
|
66
|
-
.webassets-cache
|
|
67
|
-
|
|
68
|
-
# Scrapy stuff:
|
|
69
|
-
.scrapy
|
|
70
|
-
|
|
71
|
-
# Sphinx documentation
|
|
72
|
-
docs/_build/
|
|
73
|
-
|
|
74
|
-
# PyBuilder
|
|
75
|
-
.pybuilder/
|
|
76
|
-
target/
|
|
77
|
-
|
|
78
|
-
# Jupyter Notebook
|
|
79
|
-
.ipynb_checkpoints
|
|
80
|
-
|
|
81
|
-
# IPython
|
|
82
|
-
profile_default/
|
|
83
|
-
ipython_config.py
|
|
84
|
-
|
|
85
|
-
# pyenv
|
|
86
|
-
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
-
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
-
# .python-version
|
|
89
|
-
|
|
90
|
-
# pipenv
|
|
91
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
-
# install all needed dependencies.
|
|
95
|
-
#Pipfile.lock
|
|
96
|
-
|
|
97
|
-
# poetry
|
|
98
|
-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
-
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
-
# commonly ignored for libraries.
|
|
101
|
-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
-
#poetry.lock
|
|
103
|
-
|
|
104
|
-
# pdm
|
|
105
|
-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
-
#pdm.lock
|
|
107
|
-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
-
# in version control.
|
|
109
|
-
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
-
.pdm.toml
|
|
111
|
-
|
|
112
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
-
__pypackages__/
|
|
114
|
-
|
|
115
|
-
# Celery stuff
|
|
116
|
-
celerybeat-schedule
|
|
117
|
-
celerybeat.pid
|
|
118
|
-
|
|
119
|
-
# SageMath parsed files
|
|
120
|
-
*.sage.py
|
|
121
|
-
|
|
122
|
-
# Environments
|
|
123
|
-
.env
|
|
124
|
-
.venv
|
|
125
|
-
env/
|
|
126
|
-
venv/
|
|
127
|
-
ENV/
|
|
128
|
-
env.bak/
|
|
129
|
-
venv.bak/
|
|
130
|
-
|
|
131
|
-
# Spyder project settings
|
|
132
|
-
.spyderproject
|
|
133
|
-
.spyproject
|
|
134
|
-
|
|
135
|
-
# Rope project settings
|
|
136
|
-
.ropeproject
|
|
137
|
-
|
|
138
|
-
# mkdocs documentation
|
|
139
|
-
/site
|
|
140
|
-
|
|
141
|
-
# mypy
|
|
142
|
-
.mypy_cache/
|
|
143
|
-
.dmypy.json
|
|
144
|
-
dmypy.json
|
|
145
|
-
|
|
146
|
-
# Pyre type checker
|
|
147
|
-
.pyre/
|
|
148
|
-
|
|
149
|
-
# pytype static type analyzer
|
|
150
|
-
.pytype/
|
|
151
|
-
|
|
152
|
-
# Cython debug symbols
|
|
153
|
-
cython_debug/
|
|
154
|
-
|
|
155
|
-
# PyCharm
|
|
156
|
-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
-
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
-
#.idea/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.DS_Store
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
gitdir: /Users/vkanwade/Work/open_source/fastapi_swagger2/.git/worktrees/fastapi_0.100.0
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# C extensions
|
|
7
|
-
*.so
|
|
8
|
-
|
|
9
|
-
# Distribution / packaging
|
|
10
|
-
.Python
|
|
11
|
-
build/
|
|
12
|
-
develop-eggs/
|
|
13
|
-
dist/
|
|
14
|
-
downloads/
|
|
15
|
-
eggs/
|
|
16
|
-
.eggs/
|
|
17
|
-
lib/
|
|
18
|
-
lib64/
|
|
19
|
-
parts/
|
|
20
|
-
sdist/
|
|
21
|
-
var/
|
|
22
|
-
wheels/
|
|
23
|
-
share/python-wheels/
|
|
24
|
-
*.egg-info/
|
|
25
|
-
.installed.cfg
|
|
26
|
-
*.egg
|
|
27
|
-
MANIFEST
|
|
28
|
-
|
|
29
|
-
# PyInstaller
|
|
30
|
-
# Usually these files are written by a python script from a template
|
|
31
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
-
*.manifest
|
|
33
|
-
*.spec
|
|
34
|
-
|
|
35
|
-
# Installer logs
|
|
36
|
-
pip-log.txt
|
|
37
|
-
pip-delete-this-directory.txt
|
|
38
|
-
|
|
39
|
-
# Unit test / coverage reports
|
|
40
|
-
htmlcov/
|
|
41
|
-
.tox/
|
|
42
|
-
.nox/
|
|
43
|
-
.coverage
|
|
44
|
-
.coverage.*
|
|
45
|
-
.cache
|
|
46
|
-
nosetests.xml
|
|
47
|
-
coverage.xml
|
|
48
|
-
*.cover
|
|
49
|
-
*.py,cover
|
|
50
|
-
.hypothesis/
|
|
51
|
-
.pytest_cache/
|
|
52
|
-
cover/
|
|
53
|
-
|
|
54
|
-
# Translations
|
|
55
|
-
*.mo
|
|
56
|
-
*.pot
|
|
57
|
-
|
|
58
|
-
# Django stuff:
|
|
59
|
-
*.log
|
|
60
|
-
local_settings.py
|
|
61
|
-
db.sqlite3
|
|
62
|
-
db.sqlite3-journal
|
|
63
|
-
|
|
64
|
-
# Flask stuff:
|
|
65
|
-
instance/
|
|
66
|
-
.webassets-cache
|
|
67
|
-
|
|
68
|
-
# Scrapy stuff:
|
|
69
|
-
.scrapy
|
|
70
|
-
|
|
71
|
-
# Sphinx documentation
|
|
72
|
-
docs/_build/
|
|
73
|
-
|
|
74
|
-
# PyBuilder
|
|
75
|
-
.pybuilder/
|
|
76
|
-
target/
|
|
77
|
-
|
|
78
|
-
# Jupyter Notebook
|
|
79
|
-
.ipynb_checkpoints
|
|
80
|
-
|
|
81
|
-
# IPython
|
|
82
|
-
profile_default/
|
|
83
|
-
ipython_config.py
|
|
84
|
-
|
|
85
|
-
# pyenv
|
|
86
|
-
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
-
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
-
# .python-version
|
|
89
|
-
|
|
90
|
-
# pipenv
|
|
91
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
-
# install all needed dependencies.
|
|
95
|
-
#Pipfile.lock
|
|
96
|
-
|
|
97
|
-
# poetry
|
|
98
|
-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
-
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
-
# commonly ignored for libraries.
|
|
101
|
-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
-
#poetry.lock
|
|
103
|
-
|
|
104
|
-
# pdm
|
|
105
|
-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
-
#pdm.lock
|
|
107
|
-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
-
# in version control.
|
|
109
|
-
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
-
.pdm.toml
|
|
111
|
-
|
|
112
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
-
__pypackages__/
|
|
114
|
-
|
|
115
|
-
# Celery stuff
|
|
116
|
-
celerybeat-schedule
|
|
117
|
-
celerybeat.pid
|
|
118
|
-
|
|
119
|
-
# SageMath parsed files
|
|
120
|
-
*.sage.py
|
|
121
|
-
|
|
122
|
-
# Environments
|
|
123
|
-
.env
|
|
124
|
-
.venv
|
|
125
|
-
env/
|
|
126
|
-
venv/
|
|
127
|
-
ENV/
|
|
128
|
-
env.bak/
|
|
129
|
-
venv.bak/
|
|
130
|
-
|
|
131
|
-
# Spyder project settings
|
|
132
|
-
.spyderproject
|
|
133
|
-
.spyproject
|
|
134
|
-
|
|
135
|
-
# Rope project settings
|
|
136
|
-
.ropeproject
|
|
137
|
-
|
|
138
|
-
# mkdocs documentation
|
|
139
|
-
/site
|
|
140
|
-
|
|
141
|
-
# mypy
|
|
142
|
-
.mypy_cache/
|
|
143
|
-
.dmypy.json
|
|
144
|
-
dmypy.json
|
|
145
|
-
|
|
146
|
-
# Pyre type checker
|
|
147
|
-
.pyre/
|
|
148
|
-
|
|
149
|
-
# pytype static type analyzer
|
|
150
|
-
.pytype/
|
|
151
|
-
|
|
152
|
-
# Cython debug symbols
|
|
153
|
-
cython_debug/
|
|
154
|
-
|
|
155
|
-
# PyCharm
|
|
156
|
-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
-
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
-
#.idea/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
.DS_Store
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Viraj Kanwade
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|