APIsStandard libraryospathlikeOn this pagemodulepathlike Implements PathLike trait. You can import the trait from the os package. For example: from os import PathLike Traits PathLike: A trait representing file system paths.