pyre.schemata.URI

Module Contents

class pyre.schemata.URI.URI(default=locator(), scheme=None, authority=None, address=None, **kwds)

Bases: pyre.schemata.Schema.Schema

Parser for resource identifiers

typename = uri
complaint = could not coerce {0.value!r} into a URI
coerce(self, value, **kwds)

Attempt to convert {value} into a resource locator

json(self, value)

Generate a JSON representation of {value}