Skip to content

Commit

Permalink
Initial implementation of the ingestion API
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaosPapailiou committed May 25, 2023
1 parent ff69164 commit bdf72cd
Show file tree
Hide file tree
Showing 14 changed files with 831 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apis/python/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Because `setuptools-scm` tries to include every single file known to Git,
# we trim that down to include only the Python files themselves and manadatory
# package metadata.

global-exclude *
include pyproject.toml
include MANIFEST.in
recursive-include src *.py
36 changes: 36 additions & 0 deletions apis/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[project]
name = "tiledb-vector-search"
description = "TileDB Vector Search Python client"
readme = "./README.md"
dynamic = ["version"]

dependencies = [
"tiledb-cloud>=0.10.5",
"tiledb>=0.15.2",
]

[project.urls]
homepage = "https://tiledb.com"
repository = "https://github.com/TileDB-Inc/feature-vector-prototype"


[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm>=6"]

[tool.setuptools]
zip-safe = false

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
root = "../.."
write_to = "apis/python/src/tiledb/vector_search/version.py"

[tool.ruff]
extend-select = ["I"]

[tool.ruff.isort]
known-first-party = ["tiledb"]
force-single-line = true
single-line-exclusions = ["typing", "typing_extensions"]
3 changes: 3 additions & 0 deletions apis/python/requirements-py.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy==1.24.3
tiledb-cloud==0.10.5
tiledb==0.21.3
5 changes: 5 additions & 0 deletions apis/python/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Minimal setup.py to enable editable install (pip install -e .).

import setuptools

setuptools.setup()
5 changes: 5 additions & 0 deletions apis/python/src/tiledb/vector_search/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .ingestion import ingest

__all__ = [
"ingest",
]
Loading

0 comments on commit bdf72cd

Please sign in to comment.