Skip to main content

Embedders LitServe

Installation

pip install embedders-litserve

Running the server from this repository

The server itself is not part of the PyPI distribution. To run it from this repository, configure .env and install its optional dependencies:

uv sync --extra server
uv run --extra server python app.py

Client

import asyncio

from embedders_litserve import EmbedderClient


async def main() -> None:
    async with EmbedderClient("siglip2", "http://localhost:8000") as client:
        await client.verify_model()
        response = await client.embed_texts(["a red fox"])
        print(response.embeddings)


asyncio.run(main())

Benchmark (repository only)

Run a local HTTP throughput benchmark against a running server:

uv run --extra server python bench.py http://localhost:8000
uv run --extra server python bench.py http://localhost:8000 --batch-size 64 --requests 100 --concurrency 8

The CLI sends bundled test_images as base64 to /predict. A full endpoint URL and a custom --images-dir are also supported. Images are reused when needed. The reported images/sec includes HTTP transfer and response decoding, excludes local image loading and the warmup requests (--warmup, default 2), and counts only runs where every response contains the expected number of embeddings. Use --help for all options.

Each successful run saves a dated UTC JSON file in benchmark_history/ (gitignored). It contains the server's GET /info response (model, devices, workers and server configuration), benchmark parameters, timestamps, elapsed time and images/sec. The server must expose /info; metadata is fetched before warmup, outside the measurement. Use --history-dir to change the output directory.

Publishing

Create a GitHub release with a tag such as v1.2.3. The publish workflow sets the package version to 1.2.3, builds distributions, and publishes them via PyPI Trusted Publishing. Configure the PyPI project as a trusted publisher for this repository, workflow publish.yml, and environment pypi before the first release.

Metadata

Release files for embedders-litserve 0.0.3

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

Source distribution (sdist)

Source distribution for embedders-litserve 0.0.3
File Size Uploaded Provenance Actions
embedders_litserve-0.0.3.tar.gz 3.5 kB Without provenance Details for embedders_litserve-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for embedders-litserve 0.0.3
File Interpreter ABI Platform Actions
embedders_litserve-0.0.3-py3-none-any.whl Python 3 none any Details for embedders_litserve-0.0.3-py3-none-any.whl

Total release size: 7.6 kB

Release files / embedders_litserve-0.0.3.tar.gz

Download URL embedders_litserve-0.0.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5c4fc6ec9297269477cec31a71ef8139a09d7393dd21be293adf66af504209e0
BLAKE2b-256 checksum
How to use checksums
6bcb66e5613656b7073982aad4c5e098e3e91879aaa030edf4cf393adbe89fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / embedders_litserve-0.0.3-py3-none-any.whl

Download URL embedders_litserve-0.0.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
509cc0d2c4f302f39898bb900fd04fa9d93aa10948b72c2018c8e3f78eebf817
BLAKE2b-256 checksum
How to use checksums
7f9ed1593ca7207613a305cef1b9bb20a7cfb898904542efcf12f8dd4b5995ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for embedders-litserve 0.0.3

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