| |
- exceptions.Exception(exceptions.BaseException)
-
- InvalidLinkException
- InvalidMappableException
- InvalidMappingException
- InvalidPropertyException
- InvalidQueryException
- InvalidSourcePropertyException
- NoLinkException
- NoSourceException
- NoSourcedClassException
- Source
- SourceCatalog
- SourceLink
- SourceLinkHead
- SourceLinkReader
- SourceLinkTail
- SourceMapping
- SourceQueryable
- SourceReader
- SourcedCls
- SrcClsInterface
class Source |
| |
Methods defined here:
- __init__(self, name, srcd_clses=None)
- Sources need:
- Classes defined (generate SourcedCls)
- Per class, per source specific properties (e.g., foreign keys) (done per class)
- Knowledge of how it can be queried (consider defining the query within the
source, then allow link-mappings to cite the query within the source as a way of
linking.
- Queries defined in the source need to know what parameters they may pass (handled in SourceQueryable)
- Each source should have mappings (src->schema) defined (done per class)
- __repr__(self)
- cls_by_name(self, str_clsname)
- cls_to_query_hash(self)
- get_classes(self)
- These are SOURCED classes.
- get_name(self)
- query_by_cls(self, src_cls)
Data descriptors defined here:
- classes
- These are SOURCED classes.
- name
|
class SourceCatalog |
|
TODO: This class needs cleaning up... |
|
Methods defined here:
- __init__(self, schema, sources, links)
- Source catalog needs:
- References to Source objs
- Access to Source queryables
- Knowledge of how the sources interconnect
- Schema
- activate_source(self, src)
- get_generator_by_link(self, linkname)
- Note -- generators are not generators in the strict Python sense -- they are DataSetGenerators.
- get_link_by_name(self, linkname)
- get_links_by_clsname(self, str_cls)
- Return the links that are pointed to by specific clsname.
- get_links_by_srcname_clsname(self, str_src, str_cls)
- Returns only links from active sources.
- get_links_from_head_srcname_clsname(self, str_src, str_cls)
- Return the sources that are pointed to from a specified source and class.
- get_mappings_by_srcname_clsname(self, str_src, str_cls)
- get_properties_by_srcname_clsname_propname(self, str_src, str_cls, str_prop)
- get_queries_by_srcname_clsname(self, str_src, str_cls)
- get_queries_by_srcname_clsname_queryname(self, str_src, str_cls, str_qry)
- get_source_names(self)
- get_src_by_srcname(self, str_src)
- Return the source by source name
- get_tail_clses_from_head_clsname(self, str_cls)
- Return the classes that are pointed to from a given class(str), regardless of source.
- get_tail_clses_from_head_srcname_clsname(self, str_src, str_cls)
- Return the classes that are pointed to from a given source, regardless of class.
- get_trigger_by_srcname_clsname(self, str_src, str_cls)
- inactivate_source(self, src_str)
- valid_clses_for_src_str(self, str_src)
Data descriptors defined here:
- active_sources
- links
- schema
- sources
|
|