Skip to main content

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

NameTypeRequired
Description
valueAnyThe value to be filtered. It supposes to be a str.

Returns

NameType
Description
v_1strThe normalized name. The space and underline symbols will be converted to the connection dash.