from trustedanalytics.meta.clientside import raise_deprecation_warning __all__ = ["drop_frames", "drop_graphs", "Frame", "get_frame", "get_frame_names", "get_graph", "get_graph_names"] def _get_backend(): from trustedanalytics.meta.config import get_graph_backend return get_graph_backend() # Graph try: # boilerplate required here for static analysis to pick up the inheritance (the whole point of docstubs) from trustedanalytics.core.docstubs1 import _DocStubsGraph doc_stubs_import.success(logger, "_DocStubsGraph") except Exception as e: doc_stubs_import.failure(logger, "_DocStubsGraph", e) class _DocStubsGraph(object): pass @api @name_support('graph') class _BaseGraph(CommandLoadable): _entity_type = 'graph' def __init__(self): CommandLoadable.__init__(self) def __repr__(self): try: return self._backend.get_repr(self) except: return super(_BaseGraph, self).__repr__() + " (Unable to collect metadata from server)"
logger = logging.getLogger(__name__) from trustedanalytics.meta.clientside import * api = get_api_decorator(logger) from trustedanalytics.meta.namedobj import name_support from trustedanalytics.meta.metaprog import CommandInstallable as CommandLoadable from trustedanalytics.meta.docstub import doc_stubs_import from trustedanalytics.rest.atkserver import server # _BaseModel try: # boilerplate required here for static analysis to pick up the inheritance (the whole point of docstubs) from trustedanalytics.core.docstubs1 import _DocStubs_BaseModel doc_stubs_import.success(logger, "_DocStubs_BaseModel") except Exception as e: doc_stubs_import.failure(logger, "_DocStubs_BaseModel", e) class _DocStubs_BaseModel(object): pass @api @name_support('model') class _BaseModel(_DocStubs_BaseModel, CommandLoadable): """ Class with information about a model. Has information needed to modify data and table structure. Parameters ----------- name: string The name of the newly created model
"get_graph", "get_graph_names" ] def _get_backend(): from trustedanalytics.meta.config import get_graph_backend return get_graph_backend() # Graph try: # boilerplate required here for static analysis to pick up the inheritance (the whole point of docstubs) from trustedanalytics.core.docstubs1 import _DocStubsGraph doc_stubs_import.success(logger, "_DocStubsGraph") except Exception as e: doc_stubs_import.failure(logger, "_DocStubsGraph", e) class _DocStubsGraph(object): pass @api @name_support('graph') class _BaseGraph(CommandLoadable): _entity_type = 'graph' def __init__(self): CommandLoadable.__init__(self) def __repr__(self): try:
from trustedanalytics.meta.clientside import raise_deprecation_warning __all__ = ["drop_frames", "drop_graphs", "Frame", "get_frame", "get_frame_names", "get_graph", "get_graph_names", "TitanGraph"] def _get_backend(): from trustedanalytics.meta.config import get_graph_backend return get_graph_backend() # _BaseGraph try: # boilerplate required here for static analysis to pick up the inheritance (the whole point of docstubs) from trustedanalytics.core.docstubs1 import _DocStubsBaseGraph doc_stubs_import.success(logger, "_DocStubsBaseGraph") except Exception as e: doc_stubs_import.failure(logger, "_DocStubsBaseGraph", e) class _DocStubsBaseGraph(object): pass # TitanGraph try: # boilerplate required here for static analysis to pick up the inheritance (the whole point of docstubs) from trustedanalytics.core.docstubs1 import _DocStubsTitanGraph doc_stubs_import.success(logger, "_DocStubsTitanGraph") except Exception as e: doc_stubs_import.failure(logger, "_DocStubsTitanGraph", e) class _DocStubsTitanGraph(object): pass # Graph try: