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

Contrast with yarl in FAQ? #110

Open
cdunklau opened this issue Feb 10, 2020 · 2 comments
Open

Contrast with yarl in FAQ? #110

cdunklau opened this issue Feb 10, 2020 · 2 comments

Comments

@cdunklau
Copy link

cdunklau commented Feb 10, 2020

I noticed that the FAQ entry doesn't mention yarl.

On the surface, both libs seem quite similar, both do the immutable thing, and are IRI-capable. After a (very cursory) review, the only differences I've been able to see are minor API flavor things, e.g. hyperlink.URL(**components) vs yarl.URL.build(**components).

@mahmoud
Copy link
Member

mahmoud commented Mar 30, 2020

Hey Colin! I've heard of yarl, but never used it myself. One additional difference I see is that yarl uses cython, presumably for performance, but this may also have compatibility implications. hyperlink is pure-python for the foreseeable future.

Regarding the API, the real answer of course, is that hyperlink has a history in and remains closely tied to the Twisted ecosystem, and maintains an all-but-formal compatibility for Twisted projects :)

Would the above be useful in a FAQ? Or should we provide a deeper analysis for readers?

@cdunklau
Copy link
Author

Would the above be useful in a FAQ? Or should we provide a deeper analysis for readers?

Yes. :)

I think the Cython thing is definitely worth mentioning, but I'm +0 on other things. I filed this mostly because yarl seems to be pretty widely-used, so hyperlink's comparison doc seemed to be missing something without it.

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

2 participants