MCPcopy
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
15def canonicalize_name(name: str) -> str:
16 # From ``packaging.utils.canonicalize_name`` (PEP 503)
17 return CANONICALIZE_PATTERN.sub("-", name).lower()
18
19
20def truncate_description(description: str) -> str:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected