8000 drop aiofiles · fastapi/fastapi@7af1e84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7af1e84

Browse files
committed
drop aiofiles
1 parent 9b14e4a commit 7af1e84

File tree

6 files changed

+0
-45
lines changed

6 files changed

+0
-45
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ Used by Pydantic:
440440
Used by Starlette:
441441

442442
* <a href="https://requests.readthedocs.io" target="_blank"><code>requests</code></a> - Required if you want to use the `TestClient`.
443-
* <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - Required if you want to use `FileResponse` or `StaticFiles`.
444443
* <a href="https://jinja.palletsprojects.com" target="_blank"><code>jinja2</code></a> - Required if you want to use the default template configuration.
445444
* <a href="https://andrew-d.github.io/python-multipart/" target="_blank"><code>python-multipart</code></a> - Required if you want to support form <abbr title="converting the string that comes from an HTTP request into Python data">"parsing"</abbr>, with `request.form()`.
446445
* <a href="https://pythonhosted.org/itsdangerous/" target="_blank"><code>itsdangerous</code></a> - Required for `SessionMiddleware` support.

docs/en/docs/advanced/extending-openapi.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,21 +152,6 @@ After that, your file structure could look like:
152152
└── swagger-ui.css
153153
```
154154

155-
### Install `aiofiles`
156-
157-
Now you need to install `aiofiles`:
158-
159-
160-
<div class="termy">
161-
162-
```console
163-
$ pip install aiofiles
164-
165-
---> 100%
166-
```
167-
168-
</div>
169-
170155
### Serve the static files
171156

172157
* Import `StaticFiles`.

docs/en/docs/advanced/templates.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ $ pip install jinja2
2020

2121
</div>
2222

23-
If you need to also serve static files (as in this example), install `aiofiles`:
24-
25-
<div class="termy">
26-
27-
```console
28-
$ pip install aiofiles
29-
30-
---> 100%
31-
```
32-
33-
</div>
34-
3523
## Using `Jinja2Templates`
3624

3725
* Import `Jinja2Templates`.

docs/en/docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ Used by Pydantic:
443443
Used by Starlette:
444444

445445
* <a href="https://requests.readthedocs.io" target="_blank"><code>requests</code></a> - Required if you want to use the `TestClient`.
446-
* <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - Required if you want to use `FileResponse` or `StaticFiles`.
447446
* <a href="https://jinja.palletsprojects.com" target="_blank"><code>jinja2</code></a> - Required if you want to use the default template configuration.
448447
* <a href="https://andrew-d.github.io/python-multipart/" target="_blank"><code>python-multipart</code></a> - Required if you want to support form <abbr title="converting the string that comes from an HTTP request into Python data">"parsing"</abbr>, with `request.form()`.
449448
* <a href="https://pythonhosted.org/itsdangerous/" target="_blank"><code>itsdangerous</code></a> - Required for `SessionMiddleware` support.

docs/en/docs/tutorial/static-files.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22

33
You can serve static files automatically from a directory using `StaticFiles`.
44

5-
## Install `aiofiles`
6-
7-
First you need to install `aiofiles`:
8-
9-
<div class="termy">
10-
11-
```console
12-
$ pip install aiofiles
13-
14-
---> 100%
15-
```
16-
17-
</div>
18-
195
## Use `StaticFiles`
206

217
* Import `StaticFiles`.

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ test = [
5858
"orjson >=3.2.1,<4.0.0",
5959
"ujson >=4.0.1,<5.0.0",
6060
"python-multipart >=0.0.5,<0.0.6",
61-
"aiofiles >=0.5.0,<0.6.0",
6261
"flask >=1.1.2,<2.0.0",
6362
"anyio[trio] >=3.2.1,<4",
6463
]
@@ -80,7 +79,6 @@ dev = [
8079
]
8180
all = [
8281
"requests >=2.24.0,<3.0.0",
83-
"aiofiles >=0.5.0,<0.6.0",
8482
"jinja2 >=2.11.2,<3.0.0",
8583
"python-multipart >=0.0.5,<0.0.6",
8684
"itsdangerous >=1.1.0,<2.0.0",

0 com 31FC mit comments

Comments
 (0)
0