scinumtools.dip.config package

Submodules

scinumtools.dip.config.export module

class scinumtools.dip.config.export.ExportConfig(env: Environment, **kwargs)

Bases: object

data: dict
dtype: Format
env: Environment
parse()

Default DIP parser

rename: bool
save(file_path: str, mode: str = 'w')

Save parsed text into a file

select(query: str | None = None, tags: list | None = None)

Select nodes from an environment :param str query: Node query string :param list tags: List of tag selectors

text: str

scinumtools.dip.config.export_bash module

class scinumtools.dip.config.export_bash.ExportConfigBash(env: Environment, **kwargs)

Bases: ExportConfig

parse(export=True)

Default DIP parser

scinumtools.dip.config.export_c module

class scinumtools.dip.config.export_c.ExportConfigC(*args, **kwargs)

Bases: ExportConfig

imports: list
include(library)
parse(guard: str = 'CONFIG_H', define: tuple | None = None)

Default DIP parser

parse_const(name, param)
parse_define(name, param)

scinumtools.dip.config.export_cpp module

class scinumtools.dip.config.export_cpp.ExportConfigCPP(*args, **kwargs)

Bases: ExportConfigC

parse(guard: str = 'CONFIG_H', define: tuple | None = None, const: tuple | None = None)

Default DIP parser

parse_constexpr(name, param)

scinumtools.dip.config.export_fortran module

class scinumtools.dip.config.export_fortran.ExportConfigFortran(env: Environment, **kwargs)

Bases: ExportConfig

parse(module: str = 'ConfigurationModule')

Default DIP parser

scinumtools.dip.config.export_json module

class scinumtools.dip.config.export_json.ExportConfigJSON(env: Environment, **kwargs)

Bases: ExportConfig

parse(units: bool = True, **kwargs)

Default DIP parser

scinumtools.dip.config.export_rust module

class scinumtools.dip.config.export_rust.ExportConfigRust(env: Environment, **kwargs)

Bases: ExportConfig

parse()

Default DIP parser

scinumtools.dip.config.export_toml module

class scinumtools.dip.config.export_toml.ExportConfigTOML(env: Environment, **kwargs)

Bases: ExportConfig

parse(units: bool = True, **kwargs)

Default DIP parser

scinumtools.dip.config.export_yaml module

class scinumtools.dip.config.export_yaml.ExportConfigYAML(env: Environment, **kwargs)

Bases: ExportConfig

parse(units: bool = True, **kwargs)

Default DIP parser

Module contents