vcorelib package#

Subpackages#

Submodules#

vcorelib.names module#

Common name manipulations.

vcorelib.names.obj_class_to_snake(class_obj: Any) str[source]#

Convert a CamelCase named class to a snake_case String.

vcorelib.names.to_snake(name: str, lower_dashes: bool = True) str[source]#

Convert a CamelCase String to snake_case.

vcorelib.python module#

A module for working with paths to python interpreters and virtual environments.

vcorelib.python.python_entry(version: str = None) str[source]#

Attempt to get a Python entry-point as a string.

vcorelib.python.python_version() str[source]#

Get the version of Python to use.

vcorelib.python.venv_bin(cwd: Path | str | None, program: str = None, version: str = None) Path[source]#

Get the path to a virtual environment’s script directory.

vcorelib.python.venv_dir(cwd: Path | str | None, version: str = None) Path[source]#

Get the path for a virtual environment to use.

vcorelib.python.venv_name(version: str = None) str[source]#

Get the name for a virtual environment to use.

Module contents#

Useful defaults and other package metadata.