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_df()
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.2.6.tar.gz
(43.5 kB
view details)
Built Distribution
lancedb-0.2.6-py3-none-any.whl
(45.0 kB
view details)
File details
Details for the file lancedb-0.2.6.tar.gz
.
File metadata
- Download URL: lancedb-0.2.6.tar.gz
- Upload date:
- Size: 43.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01f77a940e603c9aec1d2742e46327641b8e880e527db6fa3c3332ab224fe75f |
|
MD5 | fe340988b4ed5e65490933ad386f6a93 |
|
BLAKE2b-256 | 73e524cf9016cb05bac41dbf37fe9b3fc28a5c8c51d5f5fe49da647ade4f2de1 |
File details
Details for the file lancedb-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: lancedb-0.2.6-py3-none-any.whl
- Upload date:
- Size: 45.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e978d334619191b8dbb3c52fe49cad4a5e8927b0258302d5c9e3c30de9d0a4d |
|
MD5 | dc3d62fec2b6b2b9771824e4b4447759 |
|
BLAKE2b-256 | 7f133e5aa37a295a9437026d5f396d90d1f09ec86af6a20971e25f096fa0c13c |