as_pypi_name
FunctionSource
v_1: str = as_pypi_name(value: Any)
Convert the package name as a PyPI name.
This is a customized Jinja2 template filter.
Arguments
Requires
| Name | Type | Required | |
|---|---|---|---|
value | Any | The value to be filtered. It supposes to be a str. |
Returns
| Name | Type | |
|---|---|---|
v_1 | str | The normalized name. The space and underline symbols will be converted to the connection dash. |