pyre.descriptors

Package Contents

class pyre.descriptors.stem(optional=optional, input=input, output=output, level=level, **kwds)

The base class for typed descriptors

Descriptors are class data members that collect compile time meta-data about attributes.

In pyre, classes that use descriptors typically have a non-trivial metaclass that harvests them and catalogs them. The base class that implements most of the harvesting logic is {pyre.patterns.AttributeClassifier}. The descriptors themselves are typically typed, because they play some kind of rôle during conversions between internal and external representations of data.

class variable

Concrete class for representing descriptors

category = descriptor
identify(self, authority, **kwds)

Let {authority} know I am a descriptor

level = 0
input = False
output = False
optional = True
bind(self, **kwds)

Called by my client to let me know that all the available meta-data have been harvested

class pyre.descriptors.converter

Bases: pyre.descriptors.Processor.Processor

A record method decorator that registers this method as a converter of descriptor values

__call__(self, method)

Add {method} as a converter to my registered descriptors

class pyre.descriptors.normalizer

Bases: pyre.descriptors.Processor.Processor

A record method decorator that registers this method as a normalizer of descriptor values

__call__(self, method)

Add {method} as a normalizer to my registered descriptors

class pyre.descriptors.validator

Bases: pyre.descriptors.Processor.Processor

A record method decorator that registers this method as a validator of descriptor values

__call__(self, method)

Add {method} as a validator to my registered descriptors

class pyre.descriptors.descriptor

Bases: pyre.descriptors.Descriptor.Descriptor.variable

pyre.descriptors.bool
pyre.descriptors.complex
pyre.descriptors.decimal
pyre.descriptors.float
pyre.descriptors.inet
pyre.descriptors.int
pyre.descriptors.identity
pyre.descriptors.str
pyre.descriptors.date
pyre.descriptors.dimensional
pyre.descriptors.path
pyre.descriptors.time
pyre.descriptors.timestamp
pyre.descriptors.uri
pyre.descriptors.array
pyre.descriptors.list
pyre.descriptors.set
pyre.descriptors.tuple
pyre.descriptors.istream
pyre.descriptors.ostream
pyre.descriptors.strings(default=list, **kwds)

A list of strings

pyre.descriptors.uris(default=list, **kwds)

A list of URIs