This project downloads, processes, saves, and serves the static JSON files containing details of accepted speakers and submissions via an API.
Used by the EuroPython 2024 website and the Discord bot.
What this project does step-by-step:
- Downloads the Pretalx speaker and submission data, and saves it as JSON files.
- Transforms the JSON files into a format that is easier to work with and OK to serve publicly. This includes removing unnecessary/private fields, and adding new fields.
- Serves the JSON files via an API.
- Clone the repository.
- Install the dependency management tool:
make deps/pre
- Install the dependencies:
make deps/install
- Set up
pre-commit
:make pre-commit
You can change the event in the config.py
file. It is set to europython-2024
right now.
- Run the whole process:
make all
- Run only the download process:
make download
- Run only the transformation process:
make transform
Note: Don't forget to set PRETALX_TOKEN
in your .env
file at the root of the project. And please don't make too many requests to the Pretalx API, it might get angry 🤪
The API is served at https://programapi24.europython.eu/2024
. It has two endpoints (for now):
/speakers.json
: Returns the list of confirmed speakers./sessions.json
: Returns the list of confirmed sessions.
See this page for the explanations of the fields in the returned JSON files.