enbasics package#

Subpackages#

Module contents#

enbasics.makefile(path: Path | str = 'Makefile', *, name: str | None = None, version: str | None = None, method: Literal['stdout', 'print'] = 'stdout', color: int | None = 7) None[source]#

Print the Makefile summary in the human friendly format.

Parameters:
  • path – Complete or relative path to the makefile.

  • name – Name of the project to show in the console.

  • version – Version of projects to show beside name.

  • method – Which method for standard output is used.

  • color – Optional color override default ANSI gray.

enbasics.makeout(string: str, prefix: Literal['text', 'base', 'more'] | None = None, method: Literal['stdout', 'print'] = 'stdout', color: int | None = 7) None[source]#

Print the ANSI colorized string to the standard output.

Note

This function is forgiving due to use with Makefile.

Parameters:
  • string – String processed using inline directives.

  • prefix – Determine if and which prefix prepended.

  • method – Which method for standard output is used.

  • color – Optional color override default ANSI gray.

enbasics.makeread(path: Path | str) str[source]#

Return the contents using the provided filesystem path.

Parameters:

path – Complete or relative path to the makefile.

Returns:

Contents using the provided filesystem path.