faker.cli

Module Contents

Classes

Command

Functions

print_provider(→ None)

print_doc(→ None)

execute_from_command_line(→ None)

A simple method that runs a Command.

Attributes

__author__

T

faker.cli.__author__ = 'joke2k'
faker.cli.T
faker.cli.print_provider(doc: faker.documentor.Documentor, provider: faker.providers.BaseProvider, formatters: Dict[str, T], excludes: Optional[List[str]] = None, output: Optional[TextIO] = None) None
faker.cli.print_doc(provider_or_field: Optional[str] = None, args: Optional[List[T]] = None, lang: str = DEFAULT_LOCALE, output: Optional[Union[TextIO, io.TextIOWrapper]] = None, seed: Optional[float] = None, includes: Optional[List[str]] = None) None
class faker.cli.Command(argv: Optional[str] = None)
execute() None

Given the command-line arguments, this creates a parser appropriate to that command, and runs it.

faker.cli.execute_from_command_line(argv: Optional[str] = None) None

A simple method that runs a Command.