pydmt.core package

Submodules

pydmt.core.cache module

class pydmt.core.cache.Cache[source]

Bases: object

get_list_filename(signature: str)[source]
get_object_filename(signature: str)[source]
static iterate_objects(file_name: str) Iterable[Tuple[str, str]][source]
list_sig_ok(signature: str)[source]

return if a signature is indeed a list and all objects are intact :param signature: :return:

save_list_by_signature(signature: str, d: dict)[source]
save_object_by_signature(signature: str, file_name: str)[source]

pydmt.core.graph module

class pydmt.core.graph.Graph[source]

Bases: object

pydmt.core.pydmt module

class pydmt.core.pydmt.BuildProcessStats[source]

Bases: object

add_builder_fail(builder: Builder, e: Exception)[source]
add_builder_ok(builder: Builder)[source]
add_copy_missing(filename: str, object_name: str)[source]
add_copy_sha1(filename: str, object_name: str)[source]
add_nop(filename: str, object_name: str)[source]
get_builder_fail()[source]
get_builder_ok()[source]
get_copy_missing()[source]
get_nop()[source]
get_os_error_code() int[source]
class pydmt.core.pydmt.PyDMT[source]

Bases: object

add_builder(b: Builder) None[source]
build_all() BuildProcessStats[source]

Build all the targets, very high level method TODO: order builders by depenencies and do this multi-core :return: statistics about the build

build_by_builder(builder: Builder, stats: BuildProcessStats)[source]

run one builder, return statistics about the run

build_by_target(target: str, stats: BuildProcessStats) None[source]
build_by_targets(targets: List[str], stats: BuildProcessStats) None[source]
clean_all() None[source]

Clean all targets

pydmt.core.tempdir module

pydmt.core.tempdir.cd(new_dir: str, cleanup: Callable)[source]
pydmt.core.tempdir.tempdir()[source]

Module contents