check my python package' code example
Example 1: check package version python
import packagename
print(packagename.__version__)
Example 2: list all packages installed with pip
pipenv lock -r
import packagename
print(packagename.__version__)
pipenv lock -r