File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools" , " wheel" ]
3
+ build-backend = " setuptools.build_meta"
4
+
5
+ [project ]
6
+ name = " sqlite-vec"
7
+ version = " 0.1.7a2"
8
+ description = " A vector search SQLite extension."
9
+ readme = " README.md"
10
+ requires-python = " >=3.12"
11
+ dependencies = [
12
+ " numpy"
13
+ ]
Original file line number Diff line number Diff line change
1
+ numpy >= 2.3.0
Original file line number Diff line number Diff line change
1
+ from os import path
2
+ import sqlite3
3
+
4
+ def loadable_path ():
5
+ """ Returns the full path to the sqlite-vec loadable SQLite extension bundled with this package """
6
+
7
+ loadable_path = path .join (path .dirname (__file__ ), "vec0" )
8
+ return path .normpath (loadable_path )
9
+
10
+ def load (conn : sqlite3 .Connection ) -> None :
11
+ """ Load the sqlite-vec SQLite extension into the given database connection. """
12
+
13
+ conn .load_extension (loadable_path ())
14
+
15
+ from .extra_init import *
File renamed without changes.
You can’t perform that action at this time.
0 commit comments