semvec/pypi-packages huggingface dataset:
pathlib-alt 0.1.2
A reimplementation of the python standard library's pathlib.
License: BSD 3-Clause "New" or "Revised" License
Requires Python: >=3.7
Keywords: pathlib, stdlib

The original pathlib module seems to revolve around the idea that the path is a string, and then it can't decide if the paths are immutable or not. This module works with a different paradigm: a path is a sequence of individual components divided by a "separator" and such sequence is immutable.

This module also tries to avoid assumptions about paths: people can come up with all kind of ideas of how a path would look like in system X, this module tries to avoid the dichotomy of POSIX or Windows. The classes on this file do work under the assumption of such dichotomy and are basically factories that build path objects from the "right" classes.