File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- _exported_symbols = []
2-
31# Modules
42import duckdb .functional as functional
53import duckdb .typing as typing
4+ from _duckdb import __version__ as duckdb_version
5+ from importlib .metadata import version
6+
7+ # duckdb.__version__ returns the version of the distribution package, i.e. the pypi version
8+ __version__ = version ("duckdb" )
9+
10+ # version() is a more human friendly formatted version string of both the distribution package and the bundled duckdb
11+ def version ():
12+ return f"{ __version__ } (with duckdb { duckdb_version } )"
13+
14+ _exported_symbols = ['__version__' , 'version' ]
615
716_exported_symbols .extend ([
817 "typing" ,
248257 __interactive__ ,
249258 __jupyter__ ,
250259 __formatted_python_version__ ,
251- __version__ ,
252260 apilevel ,
253261 comment ,
254262 identifier ,
266274 "__interactive__" ,
267275 "__jupyter__" ,
268276 "__formatted_python_version__" ,
269- "__version__" ,
270277 "apilevel" ,
271278 "comment" ,
272279 "identifier" ,
You can’t perform that action at this time.
0 commit comments