https://github.com/noahgorstein/exploring-peps
Source code to accompany my blog post Exploring Python Enhancement Proposals (PEPs) with Python and Graphs
https://github.com/noahgorstein/exploring-peps
graph rdf rdflib
Last synced: 11 months ago
JSON representation
Source code to accompany my blog post Exploring Python Enhancement Proposals (PEPs) with Python and Graphs
- Host: GitHub
- URL: https://github.com/noahgorstein/exploring-peps
- Owner: noahgorstein
- Created: 2025-02-02T22:03:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-06T02:46:42.000Z (over 1 year ago)
- Last Synced: 2025-06-12T11:54:13.152Z (about 1 year ago)
- Topics: graph, rdf, rdflib
- Language: Python
- Homepage: https://www.noahgorstein.com/blog/exploring-peps-with-python-and-graphs
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exploring Python Enhancement Proposals (PEPs) with Python and Graphs
This is the code that accompanies by blog post on [Exploring Python Enhancement Proposals (PEPs) with Python and Graphs](https://noahgorstein.com/blog/exploring-peps-with-python-and-graphs).
The code in this repository is used to generate the data visualizations in the blog post.
## Installation
To install, use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) to install the dependencies and run the code:
```bash
uv run src/main.py
```
You should see output like the following:
```bash
Converting PEPs to RDF...
RDF data saved to generated/
Generating visualizations...
Generating visualization for pep_supersession.html...
Generating visualization for pep_482_authors_contributions.html...
Generating visualization for pep_dependencies.html...
Generating visualization for pep_status_pie_chart.html...
Generating visualization for guidos_peps_over_time.html...
Visualizations saved to generated/visualizations/
```
The generated visualizations and RDF will be saved in the `generated` directory.
- The RDF schema is saved as [`schema.ttl`](./generated/schema.ttl) and the instance RDF data is saved as [`data.ttl`](./generated/data.ttl). These are included in the repository if you want to view or use them without running the code.
- The graph visualizations are saved as HTML in the `generated/visualizations` directory. These are not included in the repository, but you can view them in the blog post.