1
1
PEPs API
2
2
========
3
3
4
- There is a read-only API of published PEPs available at:
4
+ There is a read-only JSON document of every published PEP available at
5
+ https://peps.python.org/api/peps.json.
5
6
6
- * https://peps.python.org/api/peps.json
7
+ Each PEP is represented as a JSON object, keyed by the PEP number.
8
+ The structure of each JSON object is as follows:
7
9
8
- The structure is like:
9
-
10
- .. code-block :: javascript
10
+ .. code-block :: typescript
11
11
12
12
{
13
13
" <PEP number>" : {
14
- " number" : integer,
14
+ " number" : integer , // always identical to <PEP number>
15
15
" title" : string ,
16
16
" authors" : string ,
17
17
" discussions_to" : string | null ,
@@ -25,67 +25,80 @@ The structure is like:
25
25
" requires" : string | null ,
26
26
" replaces" : string | null ,
27
27
" superseded_by" : string | null ,
28
+ " author_names" : Array < string > ,
28
29
" url" : string
29
30
},
30
31
}
31
32
32
33
Date values are formatted as DD-MMM-YYYY,
33
34
and multiple dates are combined in a comma-separated list.
34
35
35
- For example:
36
+ A selection of example PEPs are shown here,
37
+ illustrating some of the possible values for each field:
36
38
37
39
.. code-block :: json
38
40
39
41
{
40
- "8 " : {
41
- "number" : 8 ,
42
- "title" : " Style Guide for Python Code " ,
43
- "authors" : " Guido van Rossum , Barry Warsaw, Alyssa Coghlan " ,
42
+ "12 " : {
43
+ "number" : 12 ,
44
+ "title" : " Sample reStructuredText PEP Template " ,
45
+ "authors" : " David Goodger , Barry Warsaw, Brett Cannon " ,
44
46
"discussions_to" : null ,
45
47
"status" : " Active" ,
46
48
"type" : " Process" ,
47
49
"topic" : " " ,
48
- "created" : " 05-Jul-2001 " ,
50
+ "created" : " 05-Aug-2002 " ,
49
51
"python_version" : null ,
50
- "post_history" : " 05-Jul-2001, 01-Aug-2013 " ,
52
+ "post_history" : " `30-Aug-2002 <https://mail.python.org/archives/list/[email protected] /thread/KX3AS7QAY26QH3WIUAEOCCNXQ4V2TGGV/>`__ " ,
51
53
"resolution" : null ,
52
54
"requires" : null ,
53
55
"replaces" : null ,
54
56
"superseded_by" : null ,
55
- "url" : " https://peps.python.org/pep-0008/"
57
+ "author_names" : [
58
+ " David Goodger" ,
59
+ " Barry Warsaw" ,
60
+ " Brett Cannon"
61
+ ],
62
+ "url" : " https://peps.python.org/pep-0012/"
56
63
},
57
- "484 " : {
58
- "number" : 484 ,
59
- "title" : " Type Hints " ,
60
- "authors" : " Guido van Rossum, Jukka Lehtosalo, Łukasz Langa " ,
61
- "discussions_to" : " [email protected] " ,
64
+ "160 " : {
65
+ "number" : 160 ,
66
+ "title" : " Python 1.6 Release Schedule " ,
67
+ "authors" : " Fred L. Drake, Jr. " ,
68
+ "discussions_to" : null ,
62
69
"status" : " Final" ,
63
- "type" : " Standards Track " ,
64
- "topic" : " typing " ,
65
- "created" : " 29-Sep-2014 " ,
66
- "python_version" : " 3.5 " ,
67
- "post_history" : " 16-Jan-2015, 20-Mar-2015, 17-Apr-2015, 20-May-2015, 22-May-2015 " ,
68
- "resolution" : " https://mail.python.org/pipermail/python-dev/2015-May/140104.html " ,
70
+ "type" : " Informational " ,
71
+ "topic" : " release " ,
72
+ "created" : " 25-Jul-2000 " ,
73
+ "python_version" : " 1.6 " ,
74
+ "post_history" : null ,
75
+ "resolution" : null ,
69
76
"requires" : null ,
70
77
"replaces" : null ,
71
78
"superseded_by" : null ,
72
- "url" : " https://peps.python.org/pep-0484/"
79
+ "author_names" : [
80
+ " Fred L. Drake, Jr."
81
+ ],
82
+ "url" : " https://peps.python.org/pep-0160/"
73
83
},
74
- "622 " : {
75
- "number" : 622 ,
76
- "title" : " Structural Pattern Matching " ,
77
- "authors" : " Brandt Bucher, Daniel F Moisset, Tobias Kohn, Ivan Levkivskyi, Guido van Rossum, Talin " ,
78
- "discussions_to" : " python-dev @python.org" ,
79
- "status" : " Superseded " ,
84
+ "3124 " : {
85
+ "number" : 3124 ,
86
+ "title" : " Overloading, Generic Functions, Interfaces, and Adaptation " ,
87
+ "authors" : " Phillip J. Eby " ,
88
+ "discussions_to" : " python-3000 @python.org" ,
89
+ "status" : " Deferred " ,
80
90
"type" : " Standards Track" ,
81
91
"topic" : " " ,
82
- "created" : " 23-Jun-2020 " ,
83
- "python_version" : " 3.10 " ,
84
- "post_history" : " 23-Jun-2020, 08-Jul-2020 " ,
92
+ "created" : " 28-Apr-2007 " ,
93
+ "python_version" : null ,
94
+ "post_history" : " 30-Apr-2007 " ,
85
95
"resolution" : null ,
86
- "requires" : null ,
87
- "replaces" : null ,
88
- "superseded_by" : " 634" ,
89
- "url" : " https://peps.python.org/pep-0622/"
96
+ "requires" : " 3107, 3115, 3119" ,
97
+ "replaces" : " 245, 246" ,
98
+ "superseded_by" : null ,
99
+ "author_names" : [
100
+ " Phillip J. Eby"
101
+ ],
102
+ "url" : " https://peps.python.org/pep-3124/"
90
103
}
91
104
}
0 commit comments