- Notifications
You must be signed in to change notification settings - Fork1
EuroPython/programapi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 theconfig.py
file. It is set toeuropython-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 setPRETALX_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 athttps://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.
Seethis page for the explanations of the fields in the returned JSON files.