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

Skip to content

Commit 781b6ae

Browse files
hugovkAA-Turner
andauthored
Infra: document release-cycle.json and python-releases.json (#4702)
Co-authored-by: Adam Turner <[email protected]>
1 parent 93c6ea1 commit 781b6ae

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

peps/api/index.rst

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
PEPs API
22
========
33

4+
peps.json
5+
---------
6+
47
There is a read-only JSON document of every published PEP available at
58
https://peps.python.org/api/peps.json.
69

@@ -102,3 +105,105 @@ illustrating some of the possible values for each field:
102105
"url": "https://peps.python.org/pep-3124/"
103106
}
104107
}
108+
109+
release-cycle.json
110+
------------------
111+
112+
There is a read-only JSON document of Python releases
113+
available at https://peps.python.org/api/release-cycle.json.
114+
115+
Each feature version is represented as a JSON object,
116+
keyed by the minor version number ("X.Y").
117+
The structure of each JSON object is as follows:
118+
119+
.. code-block:: typescript
120+
121+
{
122+
"<language version number>": {
123+
"branch": string,
124+
"pep": integer,
125+
"status": 'feature' | 'prerelease' | 'bugfix' | 'security' | 'end-of-life',
126+
"first_release": string, // Date formatted as YYYY-MM-DD
127+
"end_of_life": string, // Date formatted as YYYY-MM-DD
128+
"release_manager": string
129+
},
130+
}
131+
132+
For example:
133+
134+
.. code-block:: json
135+
136+
{
137+
"3.15": {
138+
"branch": "main",
139+
"pep": 790,
140+
"status": "feature",
141+
"first_release": "2026-10-01",
142+
"end_of_life": "2031-10",
143+
"release_manager": "Hugo van Kemenade"
144+
},
145+
"3.14": {
146+
"branch": "3.14",
147+
"pep": 745,
148+
"status": "bugfix",
149+
"first_release": "2025-10-07",
150+
"end_of_life": "2030-10",
151+
"release_manager": "Hugo van Kemenade"
152+
}
153+
}
154+
155+
python-releases.json
156+
--------------------
157+
158+
A more complete JSON document of all Python releases since version 1.6 is
159+
available at https://peps.python.org/api/python-releases.json and includes
160+
metadata about each feature release cycle, for example:
161+
162+
.. code-block:: json
163+
164+
{
165+
"metadata": {
166+
"3.14": {
167+
"pep": 745,
168+
"status": "bugfix",
169+
"branch": "3.14",
170+
"release_manager": "Hugo van Kemenade",
171+
"start_of_development": "2024-05-08",
172+
"feature_freeze": "2025-05-07",
173+
"first_release": "2025-10-07",
174+
"end_of_bugfix": "2027-10-07",
175+
"end_of_life": "2030-10-01"
176+
}
177+
}
178+
}
179+
180+
181+
And also detailed information about each individual release within that cycle,
182+
for example:
183+
184+
.. code-block:: json
185+
186+
{
187+
"releases": {
188+
"3.14": [
189+
{
190+
"stage": "3.14.0 candidate 3",
191+
"state": "actual",
192+
"date": "2025-09-18",
193+
"note": ""
194+
},
195+
{
196+
"stage": "3.14.0 final",
197+
"state": "actual",
198+
"date": "2025-10-07",
199+
"note": ""
200+
},
201+
{
202+
"stage": "3.14.1",
203+
"state": "expected",
204+
"date": "2025-12-02",
205+
"note": ""
206+
}
207+
]
208+
}
209+
}

0 commit comments

Comments
 (0)