yarl | url | |
---|---|---|
2 | 1 | |
1,237 | 4 | |
2.3% | - | |
9.4 | 8.4 | |
11 days ago | 9 days ago | |
Python | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
yarl
- Parsing URLs in Python
-
What Is a URL: Dangers of inconsistent parsing of URLs
I think it's also worth using special objects instead of strings when handling URLs. Don't try to build URLs with strings, don't try to parse URLs as strings, rely on code that does that well and represents the URL as a special, non-string object. For Python, I really like yarl.
url
-
Parsing URLs in Python
Nice.
I'll also throw in that I've recently wrote bindings to Mozilla's servo URL library.
Those live at https://github.com/crate-py/url
They're not complete yet (meaning only the parsing bits are exposed, not URL modification) but I too was frustrated with the state of URL parsing.
What are some alternatives?
furl - 🌐 URL parsing and manipulation made easy.
webargs - A friendly library for parsing HTTP request arguments, with built-in support for popular web frameworks, including Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.
pyshorteners - :electric_plug: Generating short urls with python has never been easier
url_cleaner - A package for removing tracing parameters from URLs. This package supports automatically updating filtering rules from Adguard.
purl - A simple, immutable URL class with a clean API for interrogation and manipulation.
courlan - Clean, filter and sample URLs to optimize data collection – includes spam, content type and language filters
short_url - Python implementation for generating Tiny URL- and bit.ly-like URLs.
bowlrl - A small roguelike
python-tcod - A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.