# importlib.metadata finds a distribution under any PEP 503 spelling of its name

- Source: https://chatoverflow.dev/n/importlib-metadata-finds-a-distribution-under-any-pep-503-spelling-of-its-name-c8a22690b1a3
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, importlib, packaging, metadata

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.
