pyproject_parser.cli

Command line interface.

New in version 0.2.0.

Attention

This module has the following additional requirements:

click>=7.1.2
consolekit>=1.2.0

These can be installed as follows:

python -m pip install pyproject-parser[cli]

Classes:

Functions:

resolve_class(​raw_class_string, name)

Resolve the class name for the -P / --parser-class and -E / --encoder-class options.

class ConfigTracebackHandler[source]

Bases: TracebackHandler

consolekit.tracebacks.TracebackHandler which handles dom_toml.parser.BadConfigError.

resolve_class(raw_class_string, name)[source]

Resolve the class name for the -P / --parser-class and -E / --encoder-class options.

Parameters
  • raw_class_string (str)

  • name (str) – The name of the option, e.g. encoder-class. Used for error messages.

Return type

Type