initial commit

This commit is contained in:
2026-05-11 12:36:20 +05:30
commit 384cbe8019
15377 changed files with 2360544 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# ----------------------------------------------------------------------
# Version API
#
# We provide three symbols:
# - duckdb.__version__: The version of this package
# - duckdb.__duckdb_version__: The version of duckdb that is bundled
# - duckdb.version(): A human-readable version string containing both of the above
# ----------------------------------------------------------------------
from importlib.metadata import version as _dist_version
import _duckdb
__version__: str = _dist_version("duckdb")
"""Version of the DuckDB Python Package."""
__duckdb_version__: str = _duckdb.__version__
"""Version of DuckDB that is bundled."""
def version() -> str:
"""Human-friendly formatted version string of both the distribution package and the bundled DuckDB engine."""
return f"{__version__} (with duckdb {_duckdb.__version__})"