Skip to main content

No project description provided

Project description

milli-py

ci-badge

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

milli-1.41.0.tar.gz (645.8 kB view details)

Uploaded Source

Built Distributions

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

milli-1.41.0-cp314-cp314-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.14Windows x86-64

milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

milli-1.41.0-cp313-cp313-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.13Windows x86-64

milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

milli-1.41.0-cp312-cp312-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.12Windows x86-64

milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

milli-1.41.0-cp311-cp311-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.11Windows x86-64

milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ x86-64

milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

milli-1.41.0-cp310-cp310-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.10Windows x86-64

milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ x86-64

milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl (8.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file milli-1.41.0.tar.gz.

File metadata

  • Download URL: milli-1.41.0.tar.gz
  • Upload date:
  • Size: 645.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for milli-1.41.0.tar.gz
Algorithm Hash digest
SHA256 5e62fcc68b03902406e5e6193f9b283c3ef3c3a84f1a0241318f12d0b93311ea
MD5 45700f66d9656d523aa79eea0358665a
BLAKE2b-256 6f7a7f898f696b78de8f1220082b9b48746d071ac33d4e20fb4277d2b18293c6

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: milli-1.41.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for milli-1.41.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4f20ff408c20b36e8c54cf30a44c9f6029f4d5b1e30a108b301b0c973f6757a2
MD5 48885627d3c8bf4159fd5e5c5b972790
BLAKE2b-256 4e8ccb426767d84132e3b320445dd1f0e5ea3fd891b021d5b4e194710d33b4e3

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 957c0874fe3a227dad1b484eb532b73c438c963daa9280779370b814ba994afe
MD5 40f09c481a12ca2199f9067200925b1f
BLAKE2b-256 0f825a0b48fd12abedba65fc88d4db933a6149e1b53d4c8e5b42063b82fcb04c

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf0faecf6c76fd14ddfa89a9ab35a6969c625067e3d55fd41914deaef61c2fcd
MD5 5777d8f9c1a9e6677a5b14acb8d5ee90
BLAKE2b-256 53318897aa1dedf680798e7c64375870bab350b64976b26ae290a7c606893697

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: milli-1.41.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for milli-1.41.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2dd7850c6d69260f554b699e3071e9ee9b1ed5fda67a8266c01e02c68a9c3c9c
MD5 ed2e1ce35acead13c44172a201030ffd
BLAKE2b-256 82d00f73785b4ca25928c4673e85a137f768918ac54175dfccc29867221dbc81

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 adaec0ce56a2b339f64519c0cf17ac5d9ab9b2131b84a9601f9947838b65b389
MD5 a10a2b8a67b9e74abdef302739224857
BLAKE2b-256 308df035c2de6e9ad8e83fcddb67b6e7e87da0865c8fc1806dd89702f72030df

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8032c81069cb8509ecceec51edf013f8012b9faeb8687cad55a774f24b62830
MD5 c94c574547e9ffeb20d381132828bf27
BLAKE2b-256 1fe1ec14da4d33d4ef0f805e93bdc6694692000aa1dabfc2d586068bf0bff9ac

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: milli-1.41.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for milli-1.41.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 08c32fccf0d26edf4dc16efbd73a6c82beccc88fa5b8b06eae4ffcda0e1ea80f
MD5 7781a8001976bd2cfeef43f6054ab82a
BLAKE2b-256 0a0ede9ec916bd7a2e6100ed8e1d00b49b599992033a2df1e3986e5a636e8658

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 c9a496c3b8535f8a96541531565f99dff8e5e526d9e1505ecc76bec0e53ca808
MD5 68b02a19b32081343ec13ed97f1116f9
BLAKE2b-256 5fba0c76c37f331e1ad96275e6a0a7d4075654878e837c753dfa902e9c22e5cd

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b15ab493e99be4c9832052b22835d69f2f04e541dd45c2af828191e13359dda9
MD5 6563e49e778bf14d015b06b97263c7f0
BLAKE2b-256 b6aef2ef2fa7d8eeb112124b5ba5aca9a7ee0ac7e5a2fb5018f9a90f8a8172b4

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: milli-1.41.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for milli-1.41.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f227b4f1de976d7543bfa1191db84cd73315f06ef8b59e0d13de6c8c0a723db
MD5 1521ce5146bc3f215845af07924771be
BLAKE2b-256 01a98100733a5408ff3380dbc96cb90765e569ec0b87b4f7a7795cbe228491a4

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 f1455dd1c06e12e19466101a6d07707cd24ce676bfb34715a8f80e9ccbaadde4
MD5 95ac2333a7710708c6abf671f5f8da5b
BLAKE2b-256 aea9cd8d603c257f6dbc8ab58fb664e504372929ea7d2ae491bcebcaf3c602c0

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b52d0c5c5796e6f98a2b66521d760a42b6c194181d0d864e65ebf132f24e2db9
MD5 fd41f57f01de1ffd19693246a4614ec1
BLAKE2b-256 9c2f02969844c2f21cb5ed671537e0626cee2e9fde40b876b2339310a9cde826

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: milli-1.41.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for milli-1.41.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5f536e08874fff0380830d0a3a290d20bcd73f7c4ab185dde0c48ff8e9fbdd58
MD5 1e29bb25ce817b06e38cdc5d2b0e8d04
BLAKE2b-256 d3c67c636069a3b92292882f2d2824ee71aa104d4dfc8fb71220337923d883ae

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 ef0ce3f2d807595e44331f83a0e4658f0fbd106472a7b383d1114a81abe9dcf0
MD5 edc3a6ae701053bb85c78a1691a4abbf
BLAKE2b-256 58d88b0590543a44c00428fe78c164240a74c24e9b9d56304b0d2e630d99aaf5

See more details on using hashes here.

File details

Details for the file milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c53e06cb9a041866b94b2aad6520a84bcf1b0a44eca66ce7536bbc2a63ced49e
MD5 12c9036ba02ebb10a941ff7427a9169f
BLAKE2b-256 6cb399dc20cbc670d4c649af93ac6a3169099c4e4154d2ba83ef9708f01874c7

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