yarl icon indicating copy to clipboard operation
yarl copied to clipboard

Yet another URL library

Results 76 yarl issues
Sort by recently updated
recently updated
newest added

## What do these changes do? This adds a new method, `URL.joinpath()`, which creates a new URL object with the arguments added as path elements: ```python >>> url = URL("http://example.com/foo")...

bot:chronographer:provided

## What do these changes do? Keep absolute paths absolute when normalising. This is is consistent with RFC 3986, and just about all other URL libraries in general use. The...

bot:chronographer:provided

**Note:** I'm not filing this issue to say "yarl is wrong, urllib is right"---I know that the author of yarl knows RFC 3986 way, way better than I ever will...

When I build an URL with `yarl.URL.build` I get the URL with partly encoded query: ```python from yarl import URL scheme = 'http' host = 'profile-srv.kama.gs' path = '/oauth/authorize' query...

### Describe the bug `URL.with_port` doesn't fully validate its argument. It is possible to set a boolean port, a negative port, or a port greater than 65535. Additionally, if the...

bug

🐞 **Describe the bug** As described in [RFC 3986 § 5.2.4. Remove Dot Segments](https://tools.ietf.org/html/rfc3986#section-5.2.4), the `remove_dot_segments` algorithm removes any *extra* `/../` parts of the URL, ignoring errors when the stack...

bug

### Is your feature request related to a problem? No ### Describe the solution you'd like Would like the ability to alter single/multiple parts of a URL in single statement....

enhancement

## What do these changes do? This fix bug when method url.update_query(None) doesn't clear the query. ## Are there changes in behavior for the user? This changes clear the query...

bot:chronographer:provided

### Describe the bug `url.update_query(None)` doesn't clear the query ### To Reproduce In reality it does this: ``` >>> URL('https://mysite.org?what=this').update_query(None) URL('https://mysite.org/?what=this') ``` ### Expected behavior The [doc says](https://yarl.readthedocs.io/en/latest/api.html#yarl.URL.update_query): ``` URL.update_query(query)...

bug

### Describe the bug According to rfc 8089 paths for file URIs are absolute. ``yarl.URL`` does not complain about them but displays a wrong repr. ### To Reproduce 1. yarl...

bug