Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe1f60b

Browse files
author
Nils Lindemann
authored
Merge branch 'tiangolo:master' into de/docs/tutorial/path-params-numeric-validations.md
2 parents 783dc21 + 3fa44aa commit fe1f60b

127 files changed

Lines changed: 675 additions & 672 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
outputs:
1818
docs: ${{ steps.filter.outputs.docs }}
1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
# For pull requests it's not necessary to checkout the code but for master it is
2222
- uses: dorny/paths-filter@v2
2323
id: filter
@@ -35,7 +35,7 @@ jobs:
3535
outputs:
3636
langs: ${{ steps.show-langs.outputs.langs }}
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
- name: Set up Python
4040
uses: actions/setup-python@v4
4141
with:
@@ -71,7 +71,7 @@ jobs:
7171
env:
7272
GITHUB_CONTEXT: ${{ toJson(github) }}
7373
run: echo "$GITHUB_CONTEXT"
74-
- uses: actions/checkout@v3
74+
- uses: actions/checkout@v4
7575
- name: Set up Python
7676
uses: actions/setup-python@v4
7777
with:

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
env:
1515
GITHUB_CONTEXT: ${{ toJson(github) }}
1616
run: echo "$GITHUB_CONTEXT"
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Clean site
1919
run: |
2020
rm -rf ./site
2121
mkdir ./site
2222
- name: Download Artifact Docs
2323
id: download
24-
uses: dawidd6/action-download-artifact@v2.27.0
24+
uses: dawidd6/action-download-artifact@v2.28.0
2525
with:
2626
if_no_artifact_found: ignore
2727
github_token: ${{ secrets.FASTAPI_PREVIEW_DOCS_DOWNLOAD_ARTIFACTS }}

.github/workflows/latest-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_CONTEXT: ${{ toJson(github) }}
2626
run: echo "$GITHUB_CONTEXT"
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
# To allow latest-changes to commit to the main branch
3030
token: ${{ secrets.FASTAPI_LATEST_CHANGES }}

.github/workflows/notify-translations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
env:
2424
GITHUB_CONTEXT: ${{ toJson(github) }}
2525
run: echo "$GITHUB_CONTEXT"
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
# Allow debugging with tmate
2828
- name: Setup tmate session
2929
uses: mxschmitt/action-tmate@v3

.github/workflows/people.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
env:
2020
GITHUB_CONTEXT: ${{ toJson(github) }}
2121
run: echo "$GITHUB_CONTEXT"
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
# Ref: https://github.com/actions/runner/issues/2033
2424
- name: Fix git safe.directory in container
2525
run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
env:
1414
GITHUB_CONTEXT: ${{ toJson(github) }}
1515
run: echo "$GITHUB_CONTEXT"
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.7"
20+
python-version: "3.10"
2121
# Issue ref: https://github.com/actions/setup-python/issues/436
2222
# cache: "pip"
2323
cache-dependency-path: pyproject.toml
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build distribution
3333
run: python -m build
3434
- name: Publish
35-
uses: pypa/[email protected].6
35+
uses: pypa/[email protected].10
3636
with:
3737
password: ${{ secrets.PYPI_API_TOKEN }}
3838
- name: Dump GitHub context

.github/workflows/smokeshow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- run: pip install smokeshow
2626

27-
- uses: dawidd6/action-download-artifact@v2.27.0
27+
- uses: dawidd6/action-download-artifact@v2.28.0
2828
with:
2929
github_token: ${{ secrets.FASTAPI_SMOKESHOW_DOWNLOAD_ARTIFACTS }}
3030
workflow: test.yml

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
env:
1818
GITHUB_CONTEXT: ${{ toJson(github) }}
1919
run: echo "$GITHUB_CONTEXT"
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Set up Python
2222
uses: actions/setup-python@v4
2323
with:
@@ -42,15 +42,15 @@ jobs:
4242
runs-on: ubuntu-latest
4343
strategy:
4444
matrix:
45-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
45+
python-version: ["3.8", "3.9", "3.10", "3.11"]
4646
pydantic-version: ["pydantic-v1", "pydantic-v2"]
4747
fail-fast: false
4848
steps:
4949
- name: Dump GitHub context
5050
env:
5151
GITHUB_CONTEXT: ${{ toJson(github) }}
5252
run: echo "$GITHUB_CONTEXT"
53-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5454
- name: Set up Python
5555
uses: actions/setup-python@v4
5656
with:
@@ -92,7 +92,7 @@ jobs:
9292
env:
9393
GITHUB_CONTEXT: ${{ toJson(github) }}
9494
run: echo "$GITHUB_CONTEXT"
95-
- uses: actions/checkout@v3
95+
- uses: actions/checkout@v4
9696
- uses: actions/setup-python@v4
9797
with:
9898
python-version: '3.8'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
---
2929

30-
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.7+ based on standard Python type hints.
30+
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints.
3131

3232
The key features are:
3333

@@ -120,7 +120,7 @@ If you are building a <abbr title="Command Line Interface">CLI</abbr> app to be
120120

121121
## Requirements
122122

123-
Python 3.7+
123+
Python 3.8+
124124

125125
FastAPI stands on the shoulders of giants:
126126

@@ -336,7 +336,7 @@ You do that with standard modern Python types.
336336

337337
You don't have to learn a new syntax, the methods or classes of a specific library, etc.
338338

339-
Just standard **Python 3.7+**.
339+
Just standard **Python 3.8+**.
340340

341341
For example, for an `int`:
342342

docs/de/docs/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Mit einer interaktiven API-Dokumentation und explorativen webbasierten Benutzers
2525

2626
### Nur modernes Python
2727

28-
Alles basiert auf **Python 3.6 Typ**-Deklarationen (dank Pydantic). Es muss keine neue Syntax gelernt werden, nur standardisiertes modernes Python.
28+
Alles basiert auf **Python 3.8 Typ**-Deklarationen (dank Pydantic). Es muss keine neue Syntax gelernt werden, nur standardisiertes modernes Python.
2929

3030

3131

0 commit comments

Comments
 (0)