Package Pyblio :: Module Attribute
[show private | hide private]
[frames | no frames]

Module Pyblio.Attribute

Basic data types that can be used as attributes for a Record.

Basic attributes of a record can be qualified by one or more additional sub-attributes. For instance, an attribute author of type Person can have, for every Person instance, a sub-attribute of type Date that represents its birth date.
Classes
Date A date.
ID An external identifier
Person A person name.
Text Textual data
Txo Element of a taxonomy.
UnknownContent An invalid type.
URL An URL
_Qualified Mix-in class that provides qualifiers to attributes, making them behave like composite data types (but not arbitrarily nested data, though)

Variable Summary
dict C_to_N = {<class 'Pyblio.Attribute.Text'>: 'text', <clas...
dict N_to_C = {'txo': <class 'Pyblio.Attribute.Txo'>, 'url': ...
SRE_Pattern re_split = \W+

Variable Details

C_to_N

Type:
dict
Value:
{<class 'Pyblio.Attribute.Person'>: 'person',
 <class 'Pyblio.Attribute.Date'>: 'date',
 <class 'Pyblio.Attribute.Text'>: 'text',
 <class 'Pyblio.Attribute.URL'>: 'url',
 <class 'Pyblio.Attribute.ID'>: 'id',
 <class 'Pyblio.Attribute.Txo'>: 'txo'}                                

N_to_C

Type:
dict
Value:
{'date': <class 'Pyblio.Attribute.Date'>,
 'id': <class 'Pyblio.Attribute.ID'>,
 'person': <class 'Pyblio.Attribute.Person'>,
 'text': <class 'Pyblio.Attribute.Text'>,
 'txo': <class 'Pyblio.Attribute.Txo'>,
 'url': <class 'Pyblio.Attribute.URL'>}                                

re_split

Type:
SRE_Pattern
Value:
\W+                                                                    

Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 http://epydoc.sf.net