Skip to content

Commit 79e6194

Browse files
committed
Sync open source content 🐝 (from 740b4e51d308e2e4efda2e9b3c225d0b0d9056d9)
1 parent 1ffae8a commit 79e6194

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

β€Ždocs/sdks/customize/python/async-hooks.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class MyAsyncHook(AsyncBeforeRequestHook, AsyncAfterSuccessHook, AsyncAfterError
168168

169169
## Automatic Sync-to-Async Adaptation
170170

171-
Existing sync hooks automatically work in async contexts. When you register a sync hook, it's wrapped to run in a thread pool via `asyncio.to_thread()` (Python 3.9+) or `run_in_executor()` (Python 3.7-3.8).
171+
Existing sync hooks automatically work in async contexts. When you register a sync hook, it's wrapped to run in a thread pool via `asyncio.to_thread()`.
172172

173173
**How it works:**
174174

β€Ždocs/sdks/languages/python/oss-comparison-python.mdxβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ In this post, we'll focus on Python, but Speakeasy can also create SDKs in Go, T
2020
- [Read about the differences between Go SDKs generated by Speakeasy and OpenAPI Generator.](/post/speakeasy-oss-go-generator)
2121
</Callout>
2222

23-
Here's a summary of the major differences between a Python SDK created using Speakeasy, compared to an SDK created by the OpenAPI Generator. Unless support for Python 3.7 is critically important, Speakeasy is recommended for Python SDKs.
23+
Here's a summary of the major differences between a Python SDK created using Speakeasy, compared to an SDK created by the OpenAPI Generator. Unless support for Python 3.9 or earlier is critically important, Speakeasy is recommended for Python SDKs.
2424

2525
<Table
2626
data={[
27-
{ name: "Python Version Support", support: "βœ… Python 3.8+", docs: "⚠️ Python 3.7+ (outdated)", notes: "" },
27+
{ name: "Python Version Support", support: "βœ… Python 3.10+", docs: "⚠️ Python 3.7+ (outdated)", notes: "" },
2828
{ name: "Type Safety", support: "βœ… Pydantic + TypedDict + Advanced Enums", docs: "⚠️ Basic Pydantic only", notes: "" },
2929
{ name: "Advanced Data Types", support: "βœ… Supports null, any, union", docs: "⚠️ Limited type support", notes: "" },
3030
{ name: "Async Support", support: "βœ… (HTTPX)", docs: "❌ Not supported", notes: "" },

β€Ždocs/sdks/manage/migrate/poetry-2-update.mdxβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: "Poetry 2.0 and Python 3.9 Updates"
3-
description: "Upgrading to Poetry 2.0 and Python 3.9"
2+
title: "Poetry 2.0 and Python 3.10 Updates"
3+
description: "Upgrading to Poetry 2.0 and Python 3.10"
44
---
55

6-
# Poetry 2.0 and Python 3.9 updates
6+
# Poetry 2.0 and Python 3.10 updates
77

8-
This guide covers important updates to the Python SDK generation process related to Poetry 2.0 and Python 3.9 requirements.
8+
This guide covers important updates to the Python SDK generation process related to Poetry 2.0 and Python 3.10 requirements.
99

1010
## Changes overview
1111

1212
To evolve with the Python ecosystem and maintain compatibility with current tooling, the Python SDK generation process implements two significant changes:
1313

14-
1. The minimum Python version for generated Python SDKs changes from 3.8 to 3.9.
14+
1. The minimum Python version for generated Python SDKs changes from 3.9 to 3.10.
1515
2. Poetry packaging tool updates to version 2.0.0.
1616

17-
## Python 3.9 requirement
17+
## Python 3.10 requirement
1818

19-
Python 3.8 reached end-of-life (EOL) status in October 2024 and the Python language maintainers no longer support it for security and bug fixes. The last bug fix update occurred in May 2021, and the last security update occurred in September 2024.
19+
Python 3.9 reached end-of-life (EOL) status in October 2025 and the Python language maintainers no longer support it for security and bug fixes.
2020

21-
The key type safety tools used in the Speakeasy generation process have begun removing Python 3.8 support:
21+
The key type safety tools used in the Speakeasy generation process have begun removing Python 3.9 support:
2222

2323
- Poetry ([change](https://github.com/python-poetry/poetry/pull/9692))
2424
- Mypy ([change](https://github.com/python/mypy/pull/17492))
@@ -63,6 +63,6 @@ with:
6363
6464
## Version update considerations
6565
66-
Consistent with industry practice, the Speakeasy generator will suggest a minor version update for the generated SDK to reflect these Python changes. However, consider releasing the SDK as a major version update if API consumers are likely to be using Python 3.8, which was previously common for some data management SaaS platforms.
66+
Consistent with industry practice, the Speakeasy generator will suggest a minor version update for the generated SDK to reflect these Python changes. However, consider releasing the SDK as a major version update if API consumers are likely to be using Python 3.9, which was previously common for some data management SaaS platforms.
6767
6868
For questions, reach out on [Slack](https://go.speakeasy.com/slack).

β€Žopenapi/frameworks/django.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This guide assumes you have a basic understanding of Django project structure an
2525

2626
You will also need the following installed on your machine:
2727

28-
- Python version 3.8 or higher
28+
- Python version 3.10 or higher
2929
- Django
3030

3131
You can install Django using the following command:

β€Žopenapi/frameworks/flask.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This guide walks you through generating an OpenAPI document from a Flask project
2222

2323
To follow along, you will need:
2424

25-
- Python version 3.8 or higher
25+
- Python version 3.10 or higher
2626
- An existing Flask project or a copy of the provided [example repository](https://github.com/speakeasy-api/flask-openapi-example)
2727
- A basic understanding of Flask project structure and how REST APIs work
2828

β€Žopenapi/frameworks/pydantic.mdxβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ In this guide, you'll learn how to create new Pydantic models, generate an OpenA
1313

1414
## Prerequisites
1515

16-
Before we get started, make sure you have [Python](https://www.python.org/downloads/) 3.8 or higher installed on your machine. Check your Python version by running the following command:
16+
Before we get started, make sure you have [Python](https://www.python.org/downloads/) 3.10 or higher installed on your machine. Check your Python version by running the following command:
1717

1818
```bash filename="Terminal"
1919
python --version
2020
```
2121

22-
We use Python 3.13.3 in this guide, but any version of Python 3.8 or higher should work.
22+
We use Python 3.13.3 in this guide, but any version of Python 3.10 or higher should work.
2323

2424
## Creating a new Python project
2525

0 commit comments

Comments
Β (0)