klyn.net.URL.file
property
public readonly property file as String:
Description

Returns the file component (path plus optional query string).

import klyn.net

url = URL("https://example.com/api?q=1")
print(url.file)