Skip to content

Commit fa1533a

Browse files
committed
Document release-cycle.json and python-releases.json
1 parent b6bc205 commit fa1533a

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

peps/api/index.rst

Lines changed: 88 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,88 @@ 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 since version 2.6
113+
available at https://peps.python.org/api/release-cycle.json.
114+
115+
For example:
116+
117+
.. code-block:: json
118+
119+
{
120+
"3.15": {
121+
"branch": "main",
122+
"pep": 790,
123+
"status": "feature",
124+
"first_release": "2026-10-01",
125+
"end_of_life": "2031-10",
126+
"release_manager": "Hugo van Kemenade"
127+
},
128+
"3.14": {
129+
"branch": "3.14",
130+
"pep": 745,
131+
"status": "bugfix",
132+
"first_release": "2025-10-07",
133+
"end_of_life": "2030-10",
134+
"release_manager": "Hugo van Kemenade"
135+
}
136+
}
137+
138+
python-releases.json
139+
--------------------
140+
141+
A more complete JSON document of all Python releases since version 1.6 is
142+
available at https://peps.python.org/api/python-releases.json and includes
143+
metadata about each feature release cycle, for example:
144+
145+
.. code-block:: json
146+
147+
{
148+
"metadata": {
149+
"3.14": {
150+
"pep": 745,
151+
"status": "bugfix",
152+
"branch": "3.14",
153+
"release_manager": "Hugo van Kemenade",
154+
"start_of_development": "2024-05-08",
155+
"feature_freeze": "2025-05-07",
156+
"first_release": "2025-10-07",
157+
"end_of_bugfix": "2027-10-07",
158+
"end_of_life": "2030-10-01"
159+
}
160+
}
161+
}
162+
163+
164+
And also detailed information about each individual release within that cycle,
165+
for example:
166+
167+
.. code-block:: json
168+
169+
{
170+
"releases": {
171+
"3.14": [
172+
{
173+
"stage": "3.14.0 candidate 3",
174+
"state": "actual",
175+
"date": "2025-09-18",
176+
"note": ""
177+
},
178+
{
179+
"stage": "3.14.0 final",
180+
"state": "actual",
181+
"date": "2025-10-07",
182+
"note": ""
183+
},
184+
{
185+
"stage": "3.14.1",
186+
"state": "expected",
187+
"date": "2025-12-02",
188+
"note": ""
189+
}
190+
]
191+
}
192+
}

0 commit comments

Comments
 (0)