Kilian Klugepragmaticnotes.hashnode.dev·May 23, 2024Exposing the package version defined in the pyproject.toml as a __version__ variableBy convention, Python packages expose their version through a __version__ variable: >>> import package >>> package.__version__ 0.4.2 Ideally, the package version should be defined in one place only. Typical approaches include hardcoding it in the pa...451 readsCheat Sheetshatch