Commit graph jw-pkg/src/python/jw/pkg/lib/Uri.py
Author SHA1 Message Date
99b57c5f4e
lib.Uri.basename: Add property
Add a property to get a file's basename. For

  https://host.com/path/to/file?key=val

.basename should return "file"".

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-05-21 11:32:33 +02:00
237096cac9
lib.Uri: Add new convenience properties
Add a couple of properties and methods that come in handy when
manipulating URIs:

  .path
  .safe_full_with_username

do the obvious, and these return new Uri objects with modified paths:

  .new_add_path()
  .new_replace_path()

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-05-06 15:26:14 +02:00
f0eeb14a97
lib.base.Uri: Add module
Add a URI abstraction module. The class is designed to replace less
unified attempts at URI parsing throughout the jw-pkg code base.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-04-28 13:00:29 +02:00