Celery v0.9.5 (unstable) documentation
Object wrapping a Uniform Resource Locator.
Supports editing the query parameter list. You can convert the object back to a string, the query will be properly urlencoded.
Examples
>>> url = URL("http://www.google.com:6580/foo/bar?x=3&y=4#foo")
>>> url.query
{'x': '3', 'y': '4'}
>>> str(url)
'http://www.google.com:6580/foo/bar?y=4&x=3#foo'
>>> url.query["x"] = 10
>>> url.query.update({"George": "Constanza"})
>>> str(url)
'http://www.google.com:6580/foo/bar?y=4&x=10&George=Constanza#foo'