API

pyenvs command entrypoint

entrypoint()

The pyenvs command entrypoint.

Source code in multienv/pyenvs.py
def entrypoint():
    """The pyenvs command entrypoint."""

    commands = {
        'info': _info,
        'dependencies': _dependencies,
        'deps': _dependencies,
        'lint': _lint
    }

    ns: Namespace = _create_parser().parse_args()

    commands[ns.CMD](ns)

pyenvs dependencies module

dependencies(configuration, formatter)

Builds the environment set mapping the configuration using the given formatter.

Source code in multienv/pyenvs_deps.py
def dependencies(configuration: Configuration, formatter: Formatters) -> list:
    """Builds the environment set mapping the configuration using the given formatter."""
    return formatter.build(configuration)

pyenvs dependencies module

lint(configuration, formatter)

Builds the environment set mapping the configuration using the given formatter.

Source code in multienv/pyenvs_lint.py
def lint(configuration: Configuration, formatter: Formatters) -> list:
    """Builds the environment set mapping the configuration using the given formatter."""
    return formatter.build(configuration)