Skip to main content

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!

Metadata

Release files for milli 1.41.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for milli 1.41.0
File Size Uploaded Provenance Actions
milli-1.41.0.tar.gz 645.8 kB Without provenance Details for milli-1.41.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for milli 1.41.0
File Actions
milli-1.41.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for milli-1.41.0-cp314-cp314-win_amd64.whl
milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.39+ x86-64 Details for milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl
milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl
milli-1.41.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for milli-1.41.0-cp313-cp313-win_amd64.whl
milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.39+ x86-64 Details for milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl
milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl
milli-1.41.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for milli-1.41.0-cp312-cp312-win_amd64.whl
milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl
milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl
milli-1.41.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for milli-1.41.0-cp311-cp311-win_amd64.whl
milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl
milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl
milli-1.41.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for milli-1.41.0-cp310-cp310-win_amd64.whl
milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.39+ x86-64 Details for milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl
milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 138.2 MB

Release files / milli-1.41.0.tar.gz

Download URL milli-1.41.0.tar.gz
Size 645.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5e62fcc68b03902406e5e6193f9b283c3ef3c3a84f1a0241318f12d0b93311ea
BLAKE2b-256 checksum
How to use checksums
6f7a7f898f696b78de8f1220082b9b48746d071ac33d4e20fb4277d2b18293c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp314-cp314-win_amd64.whl

Download URL milli-1.41.0-cp314-cp314-win_amd64.whl
Size 9.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
4f20ff408c20b36e8c54cf30a44c9f6029f4d5b1e30a108b301b0c973f6757a2
BLAKE2b-256 checksum
How to use checksums
4e8ccb426767d84132e3b320445dd1f0e5ea3fd891b021d5b4e194710d33b4e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl

Download URL milli-1.41.0-cp314-cp314-manylinux_2_39_x86_64.whl
Size 9.9 MB
Tags CPython 3.14 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
957c0874fe3a227dad1b484eb532b73c438c963daa9280779370b814ba994afe
BLAKE2b-256 checksum
How to use checksums
0f825a0b48fd12abedba65fc88d4db933a6149e1b53d4c8e5b42063b82fcb04c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL milli-1.41.0-cp314-cp314-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf0faecf6c76fd14ddfa89a9ab35a6969c625067e3d55fd41914deaef61c2fcd
BLAKE2b-256 checksum
How to use checksums
53318897aa1dedf680798e7c64375870bab350b64976b26ae290a7c606893697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp313-cp313-win_amd64.whl

Download URL milli-1.41.0-cp313-cp313-win_amd64.whl
Size 9.2 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
2dd7850c6d69260f554b699e3071e9ee9b1ed5fda67a8266c01e02c68a9c3c9c
BLAKE2b-256 checksum
How to use checksums
82d00f73785b4ca25928c4673e85a137f768918ac54175dfccc29867221dbc81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL milli-1.41.0-cp313-cp313-manylinux_2_39_x86_64.whl
Size 9.9 MB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
adaec0ce56a2b339f64519c0cf17ac5d9ab9b2131b84a9601f9947838b65b389
BLAKE2b-256 checksum
How to use checksums
308df035c2de6e9ad8e83fcddb67b6e7e87da0865c8fc1806dd89702f72030df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL milli-1.41.0-cp313-cp313-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f8032c81069cb8509ecceec51edf013f8012b9faeb8687cad55a774f24b62830
BLAKE2b-256 checksum
How to use checksums
1fe1ec14da4d33d4ef0f805e93bdc6694692000aa1dabfc2d586068bf0bff9ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp312-cp312-win_amd64.whl

Download URL milli-1.41.0-cp312-cp312-win_amd64.whl
Size 9.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
08c32fccf0d26edf4dc16efbd73a6c82beccc88fa5b8b06eae4ffcda0e1ea80f
BLAKE2b-256 checksum
How to use checksums
0a0ede9ec916bd7a2e6100ed8e1d00b49b599992033a2df1e3986e5a636e8658
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL milli-1.41.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 9.9 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
c9a496c3b8535f8a96541531565f99dff8e5e526d9e1505ecc76bec0e53ca808
BLAKE2b-256 checksum
How to use checksums
5fba0c76c37f331e1ad96275e6a0a7d4075654878e837c753dfa902e9c22e5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL milli-1.41.0-cp312-cp312-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b15ab493e99be4c9832052b22835d69f2f04e541dd45c2af828191e13359dda9
BLAKE2b-256 checksum
How to use checksums
b6aef2ef2fa7d8eeb112124b5ba5aca9a7ee0ac7e5a2fb5018f9a90f8a8172b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp311-cp311-win_amd64.whl

Download URL milli-1.41.0-cp311-cp311-win_amd64.whl
Size 9.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
1f227b4f1de976d7543bfa1191db84cd73315f06ef8b59e0d13de6c8c0a723db
BLAKE2b-256 checksum
How to use checksums
01a98100733a5408ff3380dbc96cb90765e569ec0b87b4f7a7795cbe228491a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL milli-1.41.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 9.9 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
f1455dd1c06e12e19466101a6d07707cd24ce676bfb34715a8f80e9ccbaadde4
BLAKE2b-256 checksum
How to use checksums
aea9cd8d603c257f6dbc8ab58fb664e504372929ea7d2ae491bcebcaf3c602c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL milli-1.41.0-cp311-cp311-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b52d0c5c5796e6f98a2b66521d760a42b6c194181d0d864e65ebf132f24e2db9
BLAKE2b-256 checksum
How to use checksums
9c2f02969844c2f21cb5ed671537e0626cee2e9fde40b876b2339310a9cde826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp310-cp310-win_amd64.whl

Download URL milli-1.41.0-cp310-cp310-win_amd64.whl
Size 9.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
5f536e08874fff0380830d0a3a290d20bcd73f7c4ab185dde0c48ff8e9fbdd58
BLAKE2b-256 checksum
How to use checksums
d3c67c636069a3b92292882f2d2824ee71aa104d4dfc8fb71220337923d883ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL milli-1.41.0-cp310-cp310-manylinux_2_39_x86_64.whl
Size 9.9 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
ef0ce3f2d807595e44331f83a0e4658f0fbd106472a7b383d1114a81abe9dcf0
BLAKE2b-256 checksum
How to use checksums
58d88b0590543a44c00428fe78c164240a74c24e9b9d56304b0d2e630d99aaf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL milli-1.41.0-cp310-cp310-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c53e06cb9a041866b94b2aad6520a84bcf1b0a44eca66ce7536bbc2a63ced49e
BLAKE2b-256 checksum
How to use checksums
6cb399dc20cbc670d4c649af93ac6a3169099c4e4154d2ba83ef9708f01874c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Security for milli 1.41.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page