babelizer.render module¶
Render a new babelized project.
- babelizer.render.render(babel_config: BabelConfig, output: str, template: str | None = None, clobber: bool = False, version: str = '0.1', make_pretty: bool = False) str[source]¶
Generate a babelized library.
- Parameters:
babel_config (BabelConfig) – The configuration used to babelize the library.
output (str) – Name of the directory that will be the new repository.
template (str, optional) – Path (or URL) to the cookiecutter template to use.
clobber (bool, optional) – If a like-named repository already exists, overwrite it.
version (str, optional) – Version of babelized library.
make_pretty (bool, optional) – If black and isort are available, run them over the generated project.
- Returns:
Path to babelized library
- Return type:
- Raises:
OutputDirExistsError – Raised if output directory exists and clobber is not set.