No project description provided
Project description
milli-py
Python bindings for Milli, the embeddable Rust-based search engine powering Meilisearch.
Due to limitations around Rust lifecycles, methods available via IndexDocuments
and Search
have been integrated directly into the Index
class. This sacrifices/simplifies functionality available in the original milli package.
Install the package via:
pip install milli
Usage
Basic usage of the milli-py:
import milli
index = milli.Index("path/to/index")
index.add_documents([
{ "id": 0, "title": "Hello world", "content": "This is a sample" },
{ "id": 1, "title": "Hello moon", "content": "This is another sample" },
{ "id": 2, "title": "Hello sun", "content": "This is yet another sample" },
])
results = index.search("wrold")
document = index.get_document(results[0])
assert(document['title'] == "Hello world")
Documentation
Full documentation for milli-py is available at docs/index.md
.
View it online at https://github.com/AlexAltea/milli-py/blob/master/docs/index.md.
Examples
Real-world examples of milli-py in action:
- Curator: Searching 140k movies (~10 MB csv, ~140 MB index) in around 36ms to obtain metadata from OMDB and auto-rename/tag movie collections.
Do you have other interesting examples? Let me know!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file milli-1.8.1.tar.gz
.
File metadata
- Download URL: milli-1.8.1.tar.gz
- Upload date:
- Size: 380.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e0d597cd8703f1751419ed0f28823d9ad2076cac0e95f6731ed2596f8e0e337 |
|
MD5 | d92cf286345a47336b7d0091187eac40 |
|
BLAKE2b-256 | bfc19059103461ed06908cd0ae187010b399720e225560d2a665ec118678e2ef |
File details
Details for the file milli-1.8.1-cp312-none-win_amd64.whl
.
File metadata
- Download URL: milli-1.8.1-cp312-none-win_amd64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96e346dcf2ff42f5a543fcea72c271095be9e1f48fcc58fbad3f6d559c9f7b09 |
|
MD5 | ff3f5244915065ab0018fb234d320191 |
|
BLAKE2b-256 | b7a8b0ec4bbd37cbc0225430f965ea9c52851267c2a81273bb3e4ba080ac4276 |
File details
Details for the file milli-1.8.1-cp312-cp312-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: milli-1.8.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 7.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662fbf2e1201201c6beec70845a38cdfda854fd6eda9b7559ce17300894044aa |
|
MD5 | 943c4109c8bd662d4647d9afd13334ec |
|
BLAKE2b-256 | 2e015d3eb4241deb0bfa21b99dec8a7137a1d4a23025540436231bbb06fc8dae |
File details
Details for the file milli-1.8.1-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: milli-1.8.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99d2618f2dc33ddac75c8f61244eff01c469ddfa87001f71818e806e8b5e2c70 |
|
MD5 | f83c0352cef6f437a890fa826d8baa7a |
|
BLAKE2b-256 | da30812aea5c6d1a4d09e9f0930fb2f61972bbe951d0edb5b22e866075586fc1 |
File details
Details for the file milli-1.8.1-cp311-none-win_amd64.whl
.
File metadata
- Download URL: milli-1.8.1-cp311-none-win_amd64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e464b1a1d087ca21d0cfedac055d2157bb19a87987d5e7f465fd4e4a295b2f |
|
MD5 | c5919cb8b3d6d0212fbab428416b7edc |
|
BLAKE2b-256 | 52e08646d2ef53318a3ef0ad538119a1cb0f27dc7d5665d50d48332107dba20f |
File details
Details for the file milli-1.8.1-cp311-cp311-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: milli-1.8.1-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 7.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 568fa13ab3dd4d7fb3f4d1f3c7d42d9371a5f96107da7405bcf5f793c436f6d5 |
|
MD5 | 0755a392d8944c48492547955a269f78 |
|
BLAKE2b-256 | 6e39387a592ccf0a52b2fbc18d562dec8873e86cf73175d58d10c9ecabe03927 |
File details
Details for the file milli-1.8.1-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: milli-1.8.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0328ec729c0ecf4776437fc0470617447d058dcff49438d074f5012520171c11 |
|
MD5 | 89f45e2acb1e6c10bfeaa7b9ed1b9ba7 |
|
BLAKE2b-256 | 9fe2b3b7a3d9b4f5e2296943bf5033dd46c4961f0378bac63de8c876b93b69e1 |
File details
Details for the file milli-1.8.1-cp310-none-win_amd64.whl
.
File metadata
- Download URL: milli-1.8.1-cp310-none-win_amd64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2f7fce91a622897ccc01dd11b05ee6f3809226e416a3552acd23d32f4a3449 |
|
MD5 | c05f686e23d0048bbab35beef9fd349d |
|
BLAKE2b-256 | 961713c4b1d42d971375259b274144852ec8b86a603a48c43984a92d241b894d |
File details
Details for the file milli-1.8.1-cp310-cp310-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: milli-1.8.1-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 7.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43ee9770b68dfe2fc5004781b0ef8e7426ecca57f081d942f5684123870e8b94 |
|
MD5 | f660382c1034125bff6855e877d0cff0 |
|
BLAKE2b-256 | 90f207521dafb609893fd3643adaace2b1798b89d4b5de1982889246d3b65d1f |
File details
Details for the file milli-1.8.1-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: milli-1.8.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c5949ba824cd0ba354cbf5a53c6df6f1713cf62256d614aceeb29f5bb74c7e |
|
MD5 | 0991f65fcffdca2e0384deac5e540ae4 |
|
BLAKE2b-256 | 8f285ad01ad5d9c4c6f4a6c06088481a1a6fdf80f2a7d8bad207485ed8e84e7d |
File details
Details for the file milli-1.8.1-cp39-none-win_amd64.whl
.
File metadata
- Download URL: milli-1.8.1-cp39-none-win_amd64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5e5c0af6f0220bf8524704e962afbf941d4e98bf1154e3716db424916a4df07 |
|
MD5 | 58ddca7c0c84e71a3675a463322c81c4 |
|
BLAKE2b-256 | 3ae517fd4de0e9a6a9db1b70b123d280b330ff050281ab262d5eaf7122fb448f |
File details
Details for the file milli-1.8.1-cp39-cp39-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: milli-1.8.1-cp39-cp39-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 7.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4145d2d24606b5de5757a83481259b298ebf26c9b93a750ed645c8acc0501fc1 |
|
MD5 | 855465f3227494422f11d9332487e0c0 |
|
BLAKE2b-256 | 0b295a9b68dcf899682708db0a109d9474a2a6b72659917223f59a3c94bb728f |
File details
Details for the file milli-1.8.1-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: milli-1.8.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae53a0c6b0fb89b3760b54a68bf65d5342cbb5133fe40d85cd1a1c246db95e79 |
|
MD5 | 1d69adf70319843c3a0451f586468d9a |
|
BLAKE2b-256 | b59b23ed8527d152d72bd9f2679458dbb4acbbcb2158cbcd6f8558159ad8425d |
File details
Details for the file milli-1.8.1-cp38-none-win_amd64.whl
.
File metadata
- Download URL: milli-1.8.1-cp38-none-win_amd64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd1abdbe8a621e9be71637175750dbc8d5c5c66e044ae849ade0ac1e50600f0 |
|
MD5 | 3f1f19882338204a834c88591f97a92f |
|
BLAKE2b-256 | d5ff4ea3a4211f5ccb31bcba8452d8456f6599266c49036ad2bbdae5682f826a |
File details
Details for the file milli-1.8.1-cp38-cp38-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: milli-1.8.1-cp38-cp38-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 7.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92faec7ca1adde7799bf14ce5319b3e118b93d7117d67afcb5c33e4bf9920117 |
|
MD5 | a3565c21d25ed7910da2af4f5da7984c |
|
BLAKE2b-256 | f0c070d1abd31e7214d24f1d5ae21e417332de190ea03cd623d8d5fb981ef4d3 |
File details
Details for the file milli-1.8.1-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: milli-1.8.1-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ca6c93491aaa7c7a2010933130c3a6a71d269029f7a1b5079315d2b344bae6 |
|
MD5 | 347c52b5f62c5eba4755491d35fe93e4 |
|
BLAKE2b-256 | 5870e6d67faf174a600c6320b5db91d0c1e891d04412c7408099cc82d542abbb |