You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you @mikeorr mentioned, theres path.py by Jason Orendorff, pathlib from PEP 428, and a couple of other path.py forks similar to this one.
There is also a currently maintained path.py fork by Jason R. Coombs. Figured it's worth a mention as an alternative or as a comparison. Here's the link: https://pypi.python.org/pypi/path.py
Today I was looking for a path manipulation library and Unipath totally looks like the way to go. Other libraries do not follow os.path.supports_unicode_filenames correctly which leads to:
choking on invalid encodings on POSIX (supports_unicode_filenames is False -- paths are bytes! see path.py, fpath)
or just fail to accept valid unicode names on Windows (supports_unicode_filenames is True -- the whole API is actually UTF-16! see pathlib).
It looks like you did a fine job here!
Apparently the "pure paths" from pathlib are also easy to emulate with Unipath since you have this clever AbstractPath with pathlib = os.path. I look forward to using your lib everywhere!
I ended up writing my own after all: rpaths, mainly because I needed an actual abstract/concrete path separation like pathlib has (I need to manipulate POSIX paths on Windows). 😒
As you @mikeorr mentioned, theres path.py by Jason Orendorff, pathlib from PEP 428, and a couple of other path.py forks similar to this one.
There is also a currently maintained
path.py
fork by Jason R. Coombs. Figured it's worth a mention as an alternative or as a comparison. Here's the link: https://pypi.python.org/pypi/path.pyI don't know if this was mentioned before, but I figured it should be brought up in the comparisons. I found out about it through the following StackOverflow question: http://stackoverflow.com/questions/3899761/will-the-real-path-py-please-stand-up/7923330#7923330
The text was updated successfully, but these errors were encountered: