-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Meta: Document the PEPs API #3864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8e5eba6
Document the PEPs API
hugovk 74d5214
Format conf.py with Black
hugovk 2b110f3
fixup! Document the PEPs API
hugovk 9376788
fixup! Document the PEPs API
hugovk 8a4e1cc
Revert "fixup! Document the PEPs API"
hugovk 7cf4fa5
Use PEPs 8, 484 and 622 as representative examples
hugovk 94daba8
Add a pseudo-schema
hugovk d3d3075
Add missing bracket, fix typo
hugovk d393bbc
Mark pseudo-JSON as JavaScript so it can be parsed by Sphinx
hugovk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixup! Document the PEPs API
- Loading branch information
commit 937678823246e3f7e8664b48936a6786629376f8
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
PEPs API | ||
======== | ||
|
||
There is a read-only API of published PEPs available at: | ||
|
||
* https://peps.python.org/api/peps.json | ||
|
||
The structure is like: | ||
|
||
.. code-block:: json | ||
hugovk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
{ | ||
"0": { | ||
hugovk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"number": 0, | ||
"title": "Index of Python Enhancement Proposals (PEPs)", | ||
"authors": "The PEP Editors", | ||
"discussions_to": null, | ||
"status": "Active", | ||
"type": "Informational", | ||
"topic": "", | ||
"created": "13-Jul-2000", | ||
"python_version": null, | ||
"post_history": null, | ||
"resolution": null, | ||
"requires": null, | ||
"replaces": null, | ||
"superseded_by": null, | ||
"url": "https://peps.python.org/pep-0000/" | ||
}, | ||
"1": { | ||
"number": 1, | ||
"title": "PEP Purpose and Guidelines", | ||
"authors": "Barry Warsaw, Jeremy Hylton, David Goodger, Alyssa Coghlan", | ||
"discussions_to": null, | ||
"status": "Active", | ||
"type": "Process", | ||
"topic": "", | ||
"created": "13-Jun-2000", | ||
"python_version": null, | ||
"post_history": "21-Mar-2001, 29-Jul-2002, 03-May-2003, 05-May-2012, 07-Apr-2013", | ||
"resolution": null, | ||
"requires": null, | ||
"replaces": null, | ||
"superseded_by": null, | ||
"url": "https://peps.python.org/pep-0001/" | ||
}, | ||
"2": { | ||
"number": 2, | ||
"title": "Procedure for Adding New Modules", | ||
"authors": "Brett Cannon, Martijn Faassen", | ||
"discussions_to": null, | ||
"status": "Active", | ||
"type": "Process", | ||
"topic": "", | ||
"created": "07-Jul-2001", | ||
"python_version": null, | ||
"post_history": "07-Jul-2001, 09-Mar-2002", | ||
"resolution": null, | ||
"requires": null, | ||
"replaces": null, | ||
"superseded_by": null, | ||
"url": "https://peps.python.org/pep-0002/" | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.