Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cjolowicz/cookiecutter-hypermodern-python
/ canonicalize_name
Function
canonicalize_name
tools/dependencies-table.py:15–17 ·
view source on GitHub ↗
(name: str)
Source
from the content-addressed store, hash-verified
13
14
15
def
canonicalize_name(name: str) -> str:
16
# From ``packaging.utils.canonicalize_name`` (PEP 503)
17
return
CANONICALIZE_PATTERN.sub(
"-"
, name).lower()
18
19
20
def
truncate_description(description: str) -> str:
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected