fastapi_swagger2 0.3.2__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.
Files changed (41) hide show
  1. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/PKG-INFO +53 -48
  2. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/README.md +9 -2
  3. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/pyproject.toml +18 -23
  4. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/src/fastapi_swagger2/__init__.py +2 -3
  5. fastapi_swagger2-0.3.3/src/fastapi_swagger2/_version.py +1 -0
  6. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/src/fastapi_swagger2/utils.py +8 -6
  7. fastapi_swagger2-0.3.2/.flake8 +0 -2
  8. fastapi_swagger2-0.3.2/.gitignore +0 -163
  9. fastapi_swagger2-0.3.2/fastapi_0.100.0/.git +0 -1
  10. fastapi_swagger2-0.3.2/fastapi_0.100.0/.gitignore +0 -163
  11. fastapi_swagger2-0.3.2/fastapi_0.100.0/LICENSE +0 -21
  12. fastapi_swagger2-0.3.2/fastapi_0.100.0/README.md +0 -91
  13. fastapi_swagger2-0.3.2/fastapi_0.100.0/pyproject.toml +0 -92
  14. fastapi_swagger2-0.3.2/fastapi_0.100.0/requirements-dev.txt +0 -1
  15. fastapi_swagger2-0.3.2/fastapi_0.100.0/requirements.txt +0 -1
  16. fastapi_swagger2-0.3.2/fastapi_0.100.0/scripts/build.sh +0 -3
  17. fastapi_swagger2-0.3.2/fastapi_0.100.0/scripts/clean.sh +0 -8
  18. fastapi_swagger2-0.3.2/fastapi_0.100.0/scripts/format.sh +0 -6
  19. fastapi_swagger2-0.3.2/fastapi_0.100.0/scripts/lint.sh +0 -9
  20. fastapi_swagger2-0.3.2/fastapi_0.100.0/scripts/publish.sh +0 -5
  21. fastapi_swagger2-0.3.2/fastapi_0.100.0/scripts/test.sh +0 -9
  22. fastapi_swagger2-0.3.2/fastapi_0.100.0/setup.cfg +0 -3
  23. fastapi_swagger2-0.3.2/fastapi_0.100.0/src/fastapi_swagger2/__init__.py +0 -145
  24. fastapi_swagger2-0.3.2/fastapi_0.100.0/src/fastapi_swagger2/constants.py +0 -2
  25. fastapi_swagger2-0.3.2/fastapi_0.100.0/src/fastapi_swagger2/models.py +0 -425
  26. fastapi_swagger2-0.3.2/fastapi_0.100.0/src/fastapi_swagger2/utils.py +0 -673
  27. fastapi_swagger2-0.3.2/requirements-dev.txt +0 -1
  28. fastapi_swagger2-0.3.2/requirements.txt +0 -1
  29. fastapi_swagger2-0.3.2/scripts/build.sh +0 -3
  30. fastapi_swagger2-0.3.2/scripts/clean.sh +0 -8
  31. fastapi_swagger2-0.3.2/scripts/format.sh +0 -6
  32. fastapi_swagger2-0.3.2/scripts/lint.sh +0 -9
  33. fastapi_swagger2-0.3.2/scripts/publish.sh +0 -5
  34. fastapi_swagger2-0.3.2/scripts/test.sh +0 -9
  35. fastapi_swagger2-0.3.2/setup.cfg +0 -3
  36. fastapi_swagger2-0.3.2/src/fastapi_swagger2_old/__init__.py +0 -145
  37. fastapi_swagger2-0.3.2/src/fastapi_swagger2_old/constants.py +0 -2
  38. fastapi_swagger2-0.3.2/src/fastapi_swagger2_old/models.py +0 -425
  39. fastapi_swagger2-0.3.2/src/fastapi_swagger2_old/utils.py +0 -673
  40. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/LICENSE +0 -0
  41. {fastapi_swagger2-0.3.2 → fastapi_swagger2-0.3.3}/src/fastapi_swagger2/models.py +0 -0
@@ -1,71 +1,69 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.3
2
2
  Name: fastapi_swagger2
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Swagger2 support for FastAPI framework
5
- Project-URL: Homepage, https://github.com/virajkanwade/fastapi_swagger2
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
- Copyright (c) 2023 Viraj Kanwade
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy
13
- of this software and associated documentation files (the "Software"), to deal
14
- in the Software without restriction, including without limitation the rights
15
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- copies of the Software, and to permit persons to whom the Software is
17
- furnished to do so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- SOFTWARE.
29
- License-File: LICENSE
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 :: Software Development
52
- Classifier: Topic :: Software Development :: Libraries
53
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
54
- Classifier: Typing :: Typed
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
- Requires-Dist: fastapi>=0.128.0
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,7 +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)
102
- * 0.3.2 - FastAPI >= 0.128.0
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)
103
102
 
104
103
  ## Installation
105
104
 
@@ -111,6 +110,12 @@ $ pip install fastapi_swagger2
111
110
 
112
111
  </div>
113
112
 
113
+ ## Development
114
+
115
+ ```console
116
+ $ uv sync --extra dev --extra test --extra all
117
+ ```
118
+
114
119
  ## Example
115
120
 
116
121
  ```Python
@@ -160,5 +165,5 @@ print(yaml.dump(spec))
160
165
  ## Development
161
166
 
162
167
  ```console
163
- $ pip install "/path/to/fastapi_swagger2/repo[test,all]"
168
+ $ uv sync --extra dev --extra test --extra all
164
169
  ```
@@ -29,7 +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
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)
33
34
 
34
35
  ## Installation
35
36
 
@@ -41,6 +42,12 @@ $ pip install fastapi_swagger2
41
42
 
42
43
  </div>
43
44
 
45
+ ## Development
46
+
47
+ ```console
48
+ $ uv sync --extra dev --extra test --extra all
49
+ ```
50
+
44
51
  ## Example
45
52
 
46
53
  ```Python
@@ -90,5 +97,5 @@ print(yaml.dump(spec))
90
97
  ## Development
91
98
 
92
99
  ```console
93
- $ pip install "/path/to/fastapi_swagger2/repo[test,all]"
100
+ $ uv sync --extra dev --extra test --extra all
94
101
  ```
@@ -1,9 +1,10 @@
1
1
  [build-system]
2
- requires = ["hatchling", "flit_core >=3.2,<4"]
3
- build-backend = "hatchling.build"
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.128.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 >=9.0.2,<10.0.0",
53
- "coverage[toml] >= 7.13.1,< 8.0",
54
- "mypy ==1.19.1",
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,17 +62,7 @@ all = [
64
62
  "httpx >=0.28.1",
65
63
  ]
66
64
 
67
- [tool.hatch.version]
68
- path = "src/fastapi_swagger2/__init__.py"
69
-
70
- [tool.isort]
71
- profile = "black"
72
- known_third_party = ["fastapi", "pydantic", "starlette"]
73
-
74
- [tool.mypy]
75
- strict = true
76
-
77
- [tool.black]
65
+ [tool.ruff]
78
66
  line-length = 119
79
67
 
80
68
  [tool.ruff.lint]
@@ -82,14 +70,21 @@ select = [
82
70
  "E", # pycodestyle errors
83
71
  "W", # pycodestyle warnings
84
72
  "F", # pyflakes
85
- # "I", # isort
73
+ "I", # isort
86
74
  "C", # flake8-comprehensions
87
75
  "B", # flake8-bugbear
88
76
  ]
89
77
  ignore = [
90
- "E501", # line too long, handled by black
78
+ "E501", # line too long, handled by ruff format
91
79
  "B008", # do not perform function calls in argument defaults
92
80
  "C901", # too complex
93
81
  ]
94
82
  per-file-ignores = { "__init__.py" = ["F401"] }
95
- isort = { known-third-party = ["fastapi", "pydantic", "starlette"] }
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.2"
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 mypy happy with the monkey patching
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"
@@ -5,8 +5,9 @@ from typing import Any, Dict, List, Optional, Sequence, Set, Tuple, Type, Union
5
5
  from fastapi import routing
6
6
  from fastapi._compat import (
7
7
  ModelField,
8
- get_compat_model_name_map,
9
8
  get_definitions,
9
+ get_flat_models_from_fields,
10
+ get_model_name_map,
10
11
  get_schema_from_model_field,
11
12
  lenient_issubclass,
12
13
  )
@@ -372,9 +373,9 @@ def get_swagger2_path(
372
373
  if isinstance(status_code_param.default, int):
373
374
  status_code = str(status_code_param.default)
374
375
 
375
- operation.setdefault("responses", {}).setdefault(status_code, {})[
376
- "description"
377
- ] = route.response_description
376
+ operation.setdefault("responses", {}).setdefault(status_code, {})["description"] = (
377
+ route.response_description
378
+ )
378
379
 
379
380
  if route_response_media_type and is_body_allowed_for_status_code(route.status_code):
380
381
  response_schema = {"type": "string"}
@@ -498,7 +499,8 @@ def get_swagger2(
498
499
  operation_ids: Set[str] = set()
499
500
 
500
501
  all_fields = get_fields_from_routes(list(routes or []) + list(webhooks or []))
501
- model_name_map = get_compat_model_name_map(all_fields)
502
+ flat_models = get_flat_models_from_fields(all_fields, known_models=set())
503
+ model_name_map = get_model_name_map(flat_models)
502
504
  field_mapping, definitions = get_definitions(
503
505
  fields=all_fields,
504
506
  model_name_map=model_name_map,
@@ -540,4 +542,4 @@ def get_swagger2(
540
542
 
541
543
  output = _resolve_parameter_refs(output, definitions)
542
544
 
543
- return jsonable_encoder(Swagger2(**output), by_alias=True, exclude_none=True) # type: ignore
545
+ return jsonable_encoder(Swagger2(**output), by_alias=True, exclude_none=True)
@@ -1,2 +0,0 @@
1
- [flake8]
2
- max-line-length = 88
@@ -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.