pyre.schemata.INet¶
Module Contents¶
-
class
pyre.schemata.INet.Address¶ Base class for addresses
This class is useful when attempting to detect whether a value has already been converted to an internet address.
-
class
pyre.schemata.INet.IPv4(host='', port=None, **kwds)¶ Bases:
pyre.schemata.INet.AddressEncapsulation of an ipv4 socket address
-
family¶
-
host=¶
-
port= 0¶
-
__str__(self)¶
-
-
class
pyre.schemata.INet.Unix(path, **kwds)¶ Bases:
pyre.schemata.INet.AddressUnix domain sockets
-
family¶
-
path¶
-
__str__(self)¶
-
-
class
pyre.schemata.INet.INet(default=any, **kwds)¶ Bases:
pyre.schemata.Schema.SchemaA type declarator for internet addresses
-
address¶
-
any¶
-
typename= inet¶
-
complaint= could not coerce {0.value!r} into an internet address¶
-
regex¶
-
coerce(self, value, **kwds)¶ Attempt to convert {value} into a internet address
-
recognize(self, family, address)¶ Return an appropriate address type based on the socket family
-
parse(self, value)¶ Convert {value}, expected to be a string, into an inet address
-
json(self, value)¶ Generate a JSON representation of {value}
-