py_opensdbrussels2026 is a tiny example package for the OpenSD 2026 Brussels summer school. It is intentionally small so it can be used to demonstrate how a Git repository is structured and how open source contributions work.
As part of this workshop we aim to co-develop a bit on this package our first assignment is to complete the participant list.
- Download and install GitHub Desktop.
- Clone this repository to your computer: OWI-Lab/OpenSD2026_Brussels_intro_git.
- Add your name to the participant list in
participants.csv - Commit your changes to the repository.
- Push your changes to a new branch.
- Open a pull request.
Secondly we try to resolve an open issue, this one; #1
The package ships with a small CSV file of participants and exposes one public function:
attendee_was_present(first_name, family_name) -> bool
It returns True when the provided participant name exists in the packaged CSV file and False otherwise.
pip install py_opensdbrussels2026For local development:
pip install -e .[dev]from py_opensdbrussels2026 import attendee_was_present
attendee_was_present("Ada", "Lovelace")The test suite contains:
- a normal boolean check for an invalid attendee name
- a positive check for a known attendee
- a joke test that reads the packaged CSV, validates countries via
pycountry, and confirms thatBelgiumis the only intentionally invalid country
Run the tests with:
pytestTwo workflows are included:
- CI workflow for running
pyteston pushes and pull requests - Publish workflow for building and publishing the package to PyPI when a GitHub release is published
To use the publish workflow, configure PyPI trusted publishing for this repository.