[Python-ideas] build:// Path / URI / URN with the __div__ operator
Wes Turner
wes.turner at gmail.com
Wed Jan 7 16:24:26 CET 2015
* [ ] build Path / URI / URN with the __div__ operator
* [ ] pick some combination of operators for URI schema, query, fragment
conjunction (like URLObject.with_<*>)::
# scheme://user@host.netloc:port/path/?query#fragment
from _ import URI, https, //, http
https // 'user at host.netloc:port' / path ** query % fragment
* __div__ /
* __floordiv__ //
* __and__ &&
* __mod__ %
* __invert__ ~
* __or__ |
* __xor__ ^
* __and__ +
* __mul__ *
* __pow__ **
* __lshift__ <<
* __rshift__ >>
References
-----------------
* https://pypi.python.org/pypi/path.py -- __div__
* https://pypi.python.org/pypi/pathlib -- [ Standard Library ]
* https://pypi.python.org/pypi/furl
* https://pypi.python.org/pypi/URLObject - [ with_scheme,
with_netloc, with_path, ... ]
* https://urlobject.readthedocs.org/en/latest/quickstart.html
* https://pypi.python.org/pypi/rdflib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150107/358439a8/attachment.html>
More information about the Python-ideas
mailing list