evariste.builder

Build process: gather files, and compile them.

class evariste.builder.Builder(setup)[source]

Takes care of build process. Can be used as a context.

shared: evariste.shared.Shared

Object that is shared and accessible by every evariste.plugins.Plugin and evariste.tree.Tree. See Plugin.shared.

cache: evariste.cache.Cache

Data that is cached between compilations. Plugin developpers won’t manipulate this attribute directly (see Plugin.shared).

plugins: evariste.plugins.Loader

Plugin loader: loaded plugins are gathered there.

close()[source]

Perform close operations.

Mainly used as a Method hooks.

compile()[source]

Compile files handled by this builder.

classmethod from_setupdict(dictionary: Dict[str, Dict[str, str]]) Builder[source]

Factory that returns a builder, given a setup dictionary.

A setup dictionary is a dict that mimics configparser structure.

classmethod from_setupname(name: str) Builder[source]

Factory that returns a builder, given the name of a setup file.