Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of alternatives to Unipath #12

Closed
shurane opened this issue Nov 25, 2013 · 2 comments
Closed

List of alternatives to Unipath #12

shurane opened this issue Nov 25, 2013 · 2 comments

Comments

@shurane
Copy link

shurane commented Nov 25, 2013

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

I 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

@remram44
Copy link

remram44 commented Jun 6, 2014

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!

@remram44
Copy link

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). 😒

@mikeorr mikeorr closed this as completed Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants