Skip to main content

lancedb

Project description

LanceDB

A Python library for LanceDB.

Installation

pip install lancedb

Usage

Basic Example

import lancedb
db = lancedb.connect('<PATH_TO_LANCEDB_DATASET>')
table = db.open_table('my_table')
results = table.search([0.1, 0.3]).limit(20).to_list()
print(results)

Development

Create a virtual environment and activate it:

python -m venv venv
. ./venv/bin/activate

Install the necessary packages:

python -m pip install .

To run the unit tests:

pytest

To run linter and automatically fix all errors:

black .
isort .

If any packages are missing, install them with:

pip install <PACKAGE_NAME>

For Windows users, there may be errors when installing packages, so these commands may be helpful:

Activate the virtual environment:

. .\venv\Scripts\activate

You may need to run the installs separately:

pip install -e .[tests]
pip install -e .[dev]

tantivy requires rust to be installed, so install it with conda, as it doesn't support windows installation:

pip install wheel
pip install cargo
conda install rust
pip install tantivy

To run the unit tests:

pytest

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lancedb-0.3.1.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lancedb-0.3.1-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file lancedb-0.3.1.tar.gz.

File metadata

  • Download URL: lancedb-0.3.1.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.6

File hashes

Hashes for lancedb-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e5a0912962e036705002ef3f40afac1bb5d32577f8ca9320f09c2d2e85908c3f
MD5 2717287c01b320d664147a2c4bee8126
BLAKE2b-256 30999e55c59c17cbb03ad15c70763622f342accf5fcca326991bd0212695c36a

See more details on using hashes here.

File details

Details for the file lancedb-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: lancedb-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 60.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.6

File hashes

Hashes for lancedb-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c452f05ca722fb4e915a7d06df5954ec50cc7b3af5db6fbf91bd82cf8f7f729
MD5 61d1dddeea694002f27ef17a9bf3f22c
BLAKE2b-256 f1311f6ff9ca8992c005d7708debef21d468a46665d15fc0181b618619bd5bf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page