Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding __version__ attribute to Python API. #9

Open
apiszcz opened this issue Aug 1, 2021 · 1 comment
Open

Consider adding __version__ attribute to Python API. #9

apiszcz opened this issue Aug 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@apiszcz
Copy link

apiszcz commented Aug 1, 2021

version does is not available.

https://www.python.org/dev/peps/pep-0396/

import horapy

dir(horapy)
['BruteForceIndex', 'HNSWIndex', 'HoraANNIndex', 'HoraBruteForceIndexStr', 'HoraBruteForceIndexUsize', 'HoraHNSWIndexStr', 'HoraHNSWIndexUsize', 'HoraIVFPQIndexStr', 'HoraIVFPQIndexUsize', 'HoraPQIndexStr', 'HoraPQIndexUsize', 'HoraSSGIndexStr', 'HoraSSGIndexUsize', 'IVFPQIndex', 'PQIndex', 'SSGIndex', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'horapy', 'numpy']
horapy.version
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'horapy' has no attribute 'version'

@apiszcz apiszcz changed the title Consider adding __version__ attribute. Consider adding __version__ attribute to Python API. Aug 1, 2021
@salamer
Copy link
Contributor

salamer commented Aug 1, 2021

great advice, I would add it in next version as soon as possible!

@salamer salamer added the enhancement New feature or request label Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants