subscriptable-path (pypi): A subclass of Python's pathlib objects that allow subscripting/indexing.
Keywords: path|pathlib