PEP 428 – The pathlib module – object-oriented filesystem paths

Abstract

This PEP proposes the inclusion of a third-party module, pathlib [1], in the standard library. The inclusion is proposed under the provisional label, as described in PEP 411.

Therefore, API changes can be done, either as part of the PEP process, or after acceptance in the standard library (and until the provisional label is removed).

The aim of this library is to provide a simple hierarchy of classes to handle filesystem paths and the common operations users do over them.