CacherManager#

class sdgx.cachers.manager.CacherManager(*args, **kwargs)[source]#

Bases: Manager

_load_dir(module)#

Import all python files in a submodule.

_normalize_name(name: str) str#
hookspecs_model = <module 'sdgx.cachers.extension' from '/home/docs/checkouts/readthedocs.org/user_builds/synthetic-data-generator/envs/latest/lib/python3.10/site-packages/sdgx/cachers/extension.py'>#

Hook specification model(where @hookspec is defined)

init(c, **kwargs: dict[str, Any])#

Init a new subclass of self.register_type.

Raises:
init_cacher(cacher_name, **kwargs: dict[str, Any]) Cacher[source]#

redirect to init

load_all_local_model()[source]#

Load all local model. Currently only sdgx.cachers.

project_name: str = 'sdgx.cacher'#

Name of entry-point for extension

property registed_cachers#

redirect to registed_cls

property registed_cls: dict[str, type]#

Access all registed class.

Lazy load, only load once.

register(cls_name, cls: type)#

Register a new model, if the model is already registed, skip it.

register_type#

alias of Cacher