jmfts-client
The thin half of JMFTS: the wire contracts, and an HTTP client generated from them.
Install this to call a JMFTS appliance. Install jmfts to run one.
pip install jmfts-client
Two dependencies — httpx and pydantic. A consumer that only makes requests does not
install sqlalchemy, psycopg2, pgvector, transformers or pymupdf to do it.
Use
from jmfts_client import RemoteJmftsClient
from jmfts_client.contracts import DocumentCreate, HybridSearchRequest
with RemoteJmftsClient("http://localhost:8100", token="...") as jmfts:
doc = jmfts.create_document(DocumentCreate(title="Ada", content="Ada Lovelace"))
hits = jmfts.hybrid_search(HybridSearchRequest(query="Ada", limit=10))
for hit in hits.results:
print(hit.document_id, hit.score)
Errors arrive as exceptions carrying the status: JmftsBadRequest (400),
JmftsUnauthorized (401 — no token, or one the appliance does not accept),
JmftsForbidden (403 — authenticated, but not permitted on that document or subtree),
JmftsNotFound (404), JmftsConflict (409), JmftsUnprocessable (422) and
JmftsServerError (5xx). Every appliance is token-gated, so 401 and 403 are the ones a new
caller usually meets first. All descend from JmftsError and import from jmfts_client.
A request that never reached the server raises JmftsTransportError.
Where the methods come from
Nobody writes them. A JMFTS service method marked @expose becomes a REST route, an entry
in the OpenAPI document, a method on the in-process LocalJmftsClient, and a method here —
four views of one definition.
jmfts_client/_verbs.py is generated from the route table the server actually builds, not
from the decorator's declaration, because the decorator does not record which parameters
are body, query or path — FastAPI's inference decides that, and reading the built routes is
what keeps this client and the server agreeing about the wire. Regeneration lives in the
jmfts repository (python -m scripts.generate_client), and a test there fails if this
file falls behind the surface.
What this client does not offer
LocalJmftsClient.unit_of_work() groups several writes into one transaction. There is no
equivalent here, deliberately. Each HTTP request is its own transaction on the server, so a
unit_of_work over HTTP could group the calls but could not roll back the earlier ones when
a later one failed. If you need that guarantee, run in-process with jmfts installed.
Licence
MIT. Copyright (c) 2026 Fight Fire with Fire Robotics, LLC.
Metadata
Release files for jmfts-client 0.8.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 |
|---|---|---|---|---|
| jmfts_client-0.8.0.tar.gz | 80.5 kB | With provenance | Details for jmfts_client-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jmfts_client-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for jmfts_client-0.8.0-py3-none-any.whl |
Total release size: 173.3 kB
Release files / jmfts_client-0.8.0.tar.gz
| Download URL | jmfts_client-0.8.0.tar.gz |
|---|---|
| Size | 80.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b515cbb3c16b0f49ae10fc450bf0575165410807f3a5c6ea956e68ffbd27bf0a
|
|
BLAKE2b-256 checksum How to use checksums |
6fbe8b2fb9927e65204aa97cfcf573073381779c4a01fbe068d538784a6c5d49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logRelease files / jmfts_client-0.8.0-py3-none-any.whl
| Download URL | jmfts_client-0.8.0-py3-none-any.whl |
|---|---|
| Size | 92.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d5b279574352fed5b2ebc8b5fbca8c07bcdbf9cb08b72f5805888fc2ba802b9
|
|
BLAKE2b-256 checksum How to use checksums |
85e0e1f071c45edc79c2164b29de0c56fd40c6ae894b0edfac6d668032b753ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logSecurity for jmfts-client 0.8.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
Both files in this release have been uploaded with provenance metadata.
Attestation for jmfts_client-0.8.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 Oct 24, 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.