How to link a text object body to the edge length of another object with Python?
Dolf Veenvliet already dit it several years ago!
Thank you to Duarte who provided the link.

The Caliper Blender Addon

The script