mooracer — Python client
The pure-Python network client for
MooRacer, the in-memory document data engine.
No Rust FFI — it speaks the same FlatBuffers-over-TCP wire protocol as any MooRacer
server, exposes a Mongo-style chain API, and returns native Python dict/list/
str/int/float/bool/None.
from mooracer import Client
c = Client.connect("127.0.0.1:4141") # "host:port"
col = c.collection("cows")
col.insert({"name": "Bella", "age": 5}) # -> _id (str)
col.find({"age": {"$gte": 4}}).sort("age").limit(10).to_list()
col.find_one({}) # dict | None
col.count({}) # int
col.exists({}) # bool
col.update_one({"_id": "…"}, {"$set": {"region": "north"}, "$inc": {"age": 1}})
col.delete_one({"_id": "…"}) # bool
# Indexes are managed over the wire:
col.create_index("region")
col.create_vector_index("emb", 64)
col.create_text_index("body")
# Search + aggregation:
col.vector_search("emb", [0.0] * 64, 10) # [(dict, float), …]
col.text_search("body", "moo", 10)
col.find({"region": "north"}).group("region").agg("count", None)
Install:
pip install mooracer # from PyPI
# or, from the checkout:
pip install ./client-python
Requires flatbuffers>=23.5.26. The generated wire/ subpackage is checked in
(regenerate with flatc --python -o mooracer/ ../schema/mooracer.fbs, then move
mooracer/mooracer/wire → mooracer/wire).
Client owns one TCP connection and is strictly request/response (one in-flight
request at a time) — use one client per thread for concurrency.
See the repo examples/ for runnable demos.
Metadata
Release files for mooracer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mooracer-0.1.0.tar.gz | 24.3 kB | With provenance | Details for mooracer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mooracer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mooracer-0.1.0-py3-none-any.whl |
Total release size: 63.8 kB
Release files / mooracer-0.1.0.tar.gz
| Download URL | mooracer-0.1.0.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5068fe2c5a5f83ba33c108a66681cafbed149e15e2c4027596cd7c3bdc003708
|
|
BLAKE2b-256 checksum How to use checksums |
2788c97b68be8b4b91bba363482b6d77a3d4201c1eceb2dcc769d4369d768731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logRelease files / mooracer-0.1.0-py3-none-any.whl
| Download URL | mooracer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 39.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fabe9137396e96b9700c0859dc5d33d9e0c66b0e93561e6a082f71941ba9bfb
|
|
BLAKE2b-256 checksum How to use checksums |
b72096f4c2abc939dd4f9afd224d54df8603cbc2d5bb8ec87230dd68b56c225f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logSecurity for mooracer 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mooracer-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logA 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.