Skip to content

Latest commit

 

History

History
270 lines (154 loc) · 4.5 KB

File metadata and controls

270 lines (154 loc) · 4.5 KB

Fmt

Licensecheck Index / Licensecheck / Fmt

Auto-generated documentation for licensecheck.fmt module.

_printLicense

Show source in fmt.py:65

Output a license as plain text.

Arguments

  • licenseEnum License - License

Returns

Type: str license of plain text

Signature

def _printLicense(licenseEnum: License) -> str: ...

See also

ansi

Show source in fmt.py:122

Format to ansi.

Arguments

  • myLice License - project license :param list[dict[str, Any]] packages: list of PackageCompats to format.

Returns

Type: str string to send to specified output in ansi format

Signature

def ansi(myLice: License, packages: list[dict[str, Any]]) -> str: ...

See also

fmt

Show source in fmt.py:295

Format to a given format by format_.

Arguments

  • myLice License - project license :param list[PackageInfo] packages: list of PackageCompats to format. :param list[ucstr] hide_parameters: list of parameters to ignore in the output.
  • show_only_failing bool - output only failing packages, defaults to False.

Returns

Type: str string to send to specified output in ansi format

Signature

def fmt(
    format_: str,
    myLice: License,
    packages: list[PackageInfo],
    hide_parameters: list[ucstr] | None = None,
    show_only_failing: bool = False,
) -> str: ...

See also

html

Show source in fmt.py:241

Format to html.

Arguments

  • myLice License - project license :param list[dict[str, Any]] packages: list of PackageCompats to format.

Returns

Type: str string to send to specified output in html format

Signature

def html(myLice: License, packages: list[dict[str, Any]]) -> str: ...

See also

markdown

Show source in fmt.py:194

Format to markdown.

Arguments

  • myLice License - project license :param list[dict[str, Any]] packages: list of PackageCompats to format.

Returns

Type: str string to send to specified output in markdown format

Signature

def markdown(myLice: License, packages: list[dict[str, Any]]) -> str: ...

See also

plainText

Show source in fmt.py:180

Format to plain text.

Arguments

  • myLice License - project license :param list[dict[str, Any]] packages: list of PackageCompats to format.

Returns

Type: str string to send to specified output in plain text format

Signature

def plainText(myLice: License, packages: list[dict[str, Any]]) -> str: ...

See also

raw

Show source in fmt.py:258

Format to json.

Arguments

  • myLice License - project license :param list[dict[str, Any]] packages: list of PackageCompats to format.

Returns

Type: str string to send to specified output in json format

Signature

def raw(myLice: License, packages: list[dict[str, Any]]) -> str: ...

See also

rawCsv

Show source in fmt.py:276

Format to csv.

Arguments

  • myLice License - project license :param list[dict[str, Any]] packages: list of PackageCompats to format.

Returns

Type: str string to send to specified output in csv format

Signature

def rawCsv(myLice: License, packages: list[dict[str, Any]]) -> str: ...

See also

stripAnsi

Show source in fmt.py:107

Strip ansi codes from a given string.

Arguments


  • string str - string to strip codes from

Returns


  • str - plaintext, utf-8 string (safe for writing to files)

Signature

def stripAnsi(string: str) -> str: ...