Skip to content

Document peps.json and move it to the root #2584

Closed
@AA-Turner

Description

@AA-Turner

We currently have https://peps.python.org/api/peps.json, an undocumented file.

It seems that people have usecases for the file, even without official support (see #2567, #2583). I suggest moving the file to the root1 for consistency with peps.rss and easier discoverability, and simultaneously documenting the file, and the minimum guarantees we provide about it.

In the issue that created it, Cam noted:

Maybe put this under an /api/peps endpoint (at least once we're ready to more publicly expose it)? Then if there was need/desire in the future, we could have an authors endpoint, sub-endpoints api/peps/N to get a single PEP's metadata, etc.

I think the api/ is uneeded here -- to those use cases, we could instead generate peps.python.org/pep-NNNN.json, and peps.python.org/authors.json.

I'd be interested in views.

A

Footnotes

  1. i.e. to https://peps.python.org/peps.json

Metadata

Metadata

Assignees

Labels

enhancementinfraCore infrastructure for building and rendering PEPs

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions