Skip to content

Commit 74f0751

Browse files
Make VERSION easier to access
Until now `algoliasearch.version.VERSION` was needed to obtain the current version. Only `algoliasearch.VERSION` is now needed. The change is backward compatible: it is still possible to do `algoliasearch.version.VERSION`.
1 parent 33e6d7c commit 74f0751

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

algoliasearch/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
from . import client
2626
from . import index
2727
from . import helpers
28+
from . import version
2829

2930

3031
# Compatibility with old import
3132
class algoliasearch(object):
33+
VERSION = version.VERSION
34+
3235
Client = client.Client
3336
Index = index.Index
3437
AlgoliaException = helpers.AlgoliaException

0 commit comments

Comments
 (0)