furl
furl copied to clipboard
🌐 URL parsing and manipulation made easy.
We are using `furl` to normalize templated URLs: ```python normalized_url = furl(rendered_url).tostr("&", False) ``` But we encounter a bit of an odd behavior when normalizing URLs which have a very...
# Background RFC 3986 defines a scheme as follows ``` scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) ``` # The Bug Furl will...
Currently, the URL parser accepts non-ASCII digits such as `'౧'` in port numbers. This is in violation of both the WHATWG URL standard and the RFCs. This patch enforces that...
```py from furl import furl def url() -> furl: return furl("http://foo.com/?a=1&b=2") print(url().set({"a": 3})) # http://foo.com/?a=3 print(url().add({"a": 3})) # http://foo.com/?a=1&b=2&a=3 # i would like to be able do this in one...
some tidyups of pylint warnings/errors all tests pass
This PR is based on #165 and fixes #124. If #124 is too controversial, I can rebase this PR on master, just tell me :) Depending on the contexts, people...
Hi, I notice one difference by applying differential testing with urllib.parse. Case 1: ``` URL = "https://@david:[email protected]" f = furl(URL) ``` Error: ValueError: Invalid port '[email protected]'. However, it should access...
For usages like: `url = furl('/foo') / 'user' / 12`
Hello there, I've been a `furl` user for a while and I really like its interface and ease of use, however, I've noticed that it's been some time since the...
With [the current updates](https://pythoninsider.blogspot.com/2024/09/python-3130rc2-3126-31110-31015-3920.html) `tests/test_furl.py::TestFurl::test_odd_urls` started to fail: ``` [ 15s] =================================== FAILURES =================================== [ 15s] ____________________________ TestFurl.test_odd_urls ____________________________ [ 15s] [ 15s] self = [ 15s] [ 15s] def...