Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

version information #44

Open
zx80 opened this issue Feb 19, 2020 · 1 comment
Open

version information #44

zx80 opened this issue Feb 19, 2020 · 1 comment

Comments

@zx80
Copy link

zx80 commented Feb 19, 2020

There is no simple way to check which version is available from the code, which is kind of anoying because the API changed (eg from_path vs load_queries…).

Providing anosql.__version__ following PEP396 would be nice.

@philpep
Copy link
Contributor

philpep commented Feb 19, 2020

Hi, you can read version from package metadata using pkg_resources:

>>> import pkg_resources
>>> pkg_resources.get_distribution('anosql')
anosql 1.0.1 (/home/ppepiot/venvs/transdev/lib/python3.5/site-packages)
>>> pkg_resources.get_distribution('anosql').version
'1.0.1'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants