If you want to get the parent path or the grandparent path in Python easily, use pathlib’s .parent.
.parent
Hydra: YAML-Based Config Management Made Simple
Loguru: Configure Professional Logging in a Single Line
Simplifying Type Annotations with MonkeyType