Tirsvad 71f89252f8
TirSystem/git-workflows: CD / changes (push) Successful in 6s
TirSystem/git-workflows: CI / secret-scan (push) Successful in 12s
TirSystem/git-workflows: CI / validate (push) Successful in 22s
TirSystem/git-workflows: CI / opengrep (push) Successful in 55s
TirSystem/git-workflows: CI / release-check (push) Successful in 6s
TirSystem/git-workflows: CD / wait-for-ci (push) Successful in 2m6s
TirSystem/git-workflows: CD / release (push) Skipped
TirSystem/git-workflows: CD / publish-wiki (push) Skipped
TirSystem/git-workflows: CD / sync-milestones (push) Successful in 14s
TirSystem/git-workflows: CD / sync-metadata (push) Successful in 6s
Merge pull request 'RC-008: record the check of the published wiki' (#33) from rc-008-published-wiki into main
Reviewed-on: #33
2026-11-23 04:08:27 +01:00
2026-11-22 20:01:31 +01:00

🚀 Space Race Analysis

Analyse and visualise the space missions since 1957: who launched most, what a launch costs, when launches happen and whether missions got safer. Day 99 assignment of the Udemy course "100 Days of Code: The Complete Python Pro Bootcamp", for course participants and anyone browsing for ideas.

📚 Table of Contents

🧭 Overview

The project analyses the nextspaceflight.com mission data supplied with the assignment and answers its questions with a Jupyter notebook. The notebook calls small, tested functions.

Folder Purpose
src/space_race/ The Python package; all constants are in constants.py
tests/ The pytest tests
docs/ Project documents, screenshots of each lecture step and the wiki

The package has no runtime dependencies. The libraries the notebook needs (pandas, plotly and others) are an optional extra named notebook.

📋 Requirements

  • Python 3.14 or newer, to run the package (py -3.14 --version on Windows, python3.14 --version elsewhere).
  • Git, to clone the repository.
  • Doxygen, only to build the source documentation.

🛠️ Setup

Create and use a local virtual environment named .venv in the repository root.

Windows (PowerShell):

py -3.14 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev,notebook]"

Linux and macOS:

python3.14 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev,notebook]"

Leave the environment with deactivate. Install only ".[dev]" if you want the tests and no notebook libraries.

📥 Data

The data file is not in the repository. Get it from the course resources (Space Missions (start).zip of the Day 99 assignment), unzip it and put mission_launches.csv in data/raw/, which git ignores. The file has 4,324 data rows and this SHA-256 checksum:

ae8097c187d910380a92c5258582981246856766e31541687f04909e78888084

Check it with Get-FileHash data\raw\mission_launches.csv (PowerShell) or sha256sum data/raw/mission_launches.csv.

▶️ Run

Start Jupyter with the environment active, then open the notebook:

python -m jupyterlab

Build the source documentation (output in docs/doxygen/):

doxygen Doxyfile

Open notebooks/space_missions_analysis.ipynb. To make the screenshots of the lecture steps again (a headless browser renders them, no window opens):

python tools/build_notebook.py
python tools/capture_steps.py

🖼️ Lecture steps

Each step of the assignment, as the notebook shows it. The wiki explains what each step taught, in English, Danish and Bahasa Malaysia, and holds the reflection journal.

1. Preliminary data exploration

Preliminary data exploration

2. Data cleaning

Data cleaning

3. Descriptive statistics

Descriptive statistics

4. Launches per organisation and rocket status

Launches per organisation and rocket status

5. Launch prices and money spent

Launch prices and money spent

6. Launches per year, month and over time

Launches per year, month and over time

7. Country analysis with choropleth maps

Country analysis with choropleth maps

8. Sunburst chart

Sunburst chart

9. Organisations and countries over time

Organisations and countries over time

10. Mission safety over time

Mission safety over time

🧪 Tests

python -m pytest

Before each push, run the static analysis with opengrep:

& "$HOME\.opengrep\cli\latest\opengrep.exe" scan --config p/python --config p/security-audit --config p/default --error src tools tests

📄 License

GNU Affero General Public License v3.0: see LICENSE.

📎 Appendix: Project documents

The documents a newcomer needs, in reading order.

Document What it tells you
Business Case Why the project exists, its scope and success criteria
Stakeholder Analysis Who is involved; the stakeholder IDs used for owners and reviewers
Project Plan The gateways and their schedule
Milestones One document per gateway: Go/No-Go criteria and tasks
Artifact registry Where each artifact type lives, the next version, the PO language and domain
Framework README The framework this project uses
Framework changelog What changed in each framework release

S
Description
Analyse and visualise the Space Race: Day 99 assignment of the 100 Days of Code Python bootcamp, with a Jupyter notebook, tests and a wiki in English, Danish and Bahasa Malaysia.
Readme AGPL-3.0
1 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 80.6%
Jupyter Notebook 19.4%