aiocoap.util.uri module

Tools that I’d like to have in urllib.parse

aiocoap.util.uri.unreserved = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~'

“unreserved” characters from RFC3986

aiocoap.util.uri.sub_delims = "!$&'()*+,;="

“sub-delims” characters from RFC3986

aiocoap.util.uri.quote_factory(safe_characters)

Return a quote function that escapes all characters not in the safe_characters iterable.