Exposing the package version defined in the pyproject.toml as a __version__ variable
By 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...
pragmaticnotes.hashnode.dev2 min read