Skip to content

Commit

Permalink
Merge pull request #12 from aerospike/Aerospike-Vector-Search-Client-…
Browse files Browse the repository at this point in the history
…0.5.0

aerospike-vector-search client python release 0.5.0
Added sync and reconfigured async to the aio module
Reconfigured wait_interval to be more consistent
  • Loading branch information
DomPeliniAerospike authored Apr 30, 2024
2 parents 2a93f84 + 68a72cc commit 4c15d05
Show file tree
Hide file tree
Showing 63 changed files with 2,488 additions and 532 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Aerospike Vector Client Python
Python client for Aerospike VectorDB
# Aerospike Vector Search Client Python
Python client for Aerospike Vector Search Database

## Prerequisites
- Python 3.8 or higher
- pip version 9.0.1 or higher
- Aerospike VectorDB and Aerospike clusters running.
- Aerospike Vector Search DB and Aerospike clusters running.


## Using the client from your application using pip
Expand All @@ -15,13 +15,13 @@ To resolve the client packages using pip, add the following to $HOME/.pip/pip.co
extra-index-url=https://<jfrog-username>:<jfrog-access-token>@aerospike.jfrog.io/artifactory/api/pypi/ecosystem-python-dev-local/simple
```

### Install the aerospike_vector using pip
### Install the aerospike_vector_search using pip
```shell
python3 -m pip install aerospike-vector
python3 -m pip install aerospike-vector-search
```
Or

You can add the package name `aerospike-vector` to your application's `requirements.txt` and install all dependencies using
You can add the package name `aerospike-vector-search` to your application's `requirements.txt` and install all dependencies using
```shell
python3 -m pip install -r requirements.txt
```
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'aerospike-vector'
project = 'aerospike-vector-search'
copyright = '2024, Dominic Pelini'
author = 'Dominic Pelini'
release = '0.4.0'
release = '0.5.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. aerospike-vector documentation master file, created by
.. aerospike-vector-search documentation master file, created by
sphinx-quickstart on Thu Apr 11 07:35:51 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Aerospike Vector Client for Python.
Welcome to Aerospike Vector Search Client for Python.

This package splits the client functionality into two separate clients.

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx_rtd_theme
aerospike-vector
aerospike-vector-search
2 changes: 1 addition & 1 deletion docs/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ types

This module provides administrative functions for the VectorDB system.

.. automodule:: aerospike_vector.types
.. automodule:: aerospike_vector_search.types
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/vectordb_admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vectordb_admin Module
This module contains the admin client, which is designed to conduct Proximus administrative operation such as creating indexes, querying index information, and dropping indexes.


.. automodule:: aerospike_vector.vectordb_admin
.. automodule:: aerospike_vector_search.vectordb_admin
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/vectordb_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vectordb_client Module
This module contains the vector client (VectorDbClient), which specializes in performing database operations with vector data.


.. automodule:: aerospike_vector.vectordb_client
.. automodule:: aerospike_vector_search.vectordb_client
:members:
:undoc-members:
:show-inheritance:
6 changes: 3 additions & 3 deletions proto/codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ cd "$(dirname "$0")"
python3 -m pip install grpcio-tools
python3 -m grpc_tools.protoc \
--proto_path=. \
--python_out=../src/aerospike_vector/ \
--grpc_python_out=../src/aerospike_vector/ \
--python_out=../src/aerospike_vector_search/shared/proto_generated/ \
--grpc_python_out=../src/aerospike_vector_search/shared/proto_generated/ \
*.proto

# The generated imports are not relative and fail in generated packages.
# Fix with relative imports.
find ../src/aerospike_vector/ -name "*.py" -exec sed -i -e 's/^import \(.*\)_pb2 /from . import \1_pb2 /g' {} \;
find ../src/aerospike_vector_search/shared/proto_generated/ -name "*.py" -exec sed -i -e 's/^import \(.*\)_pb2 /from . import \1_pb2 /g' {} \;
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools","wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "aerospike-vector"
name = "aerospike-vector-search"
description = "Aerospike Proximus Client Library for Python"
authors = [
{ name = "Aerospike, Inc.", email = "[email protected]" }
Expand All @@ -22,7 +22,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Database"
]
version = "0.4.0"
version = "0.5.0"
requires-python = ">3.8"
dependencies = [
"grpcio",
Expand All @@ -35,5 +35,5 @@ dependencies = [
[tool.setuptools]
zip-safe = false
include-package-data = true
packages = ["aerospike_vector"]
packages = ["aerospike_vector_search", "aerospike_vector_search.aio", "aerospike_vector_search.shared", "aerospike_vector_search.shared.proto_generated", "aerospike_vector_search.internal", "aerospike_vector_search.aio.internal"]
package-dir={"" = "src"}
5 changes: 0 additions & 5 deletions src/aerospike_vector/__init__.py

This file was deleted.

Loading

0 comments on commit 4c15d05

Please sign in to comment.