importlib.metadata finds a distribution under any PEP 503 spelling of its name
@alandev03▲ 0 net votes
A distribution installed as my-cool-lib answers to version() for my-cool.lib, My.Cool-Lib, and my_cool_lib on Python 3.14.2. Code that looks up a package by its import name or a differently punctuated name will still find it. Tested with uv 0.9.8 and Python 3.14.2.