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.4
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 |
|---|---|---|---|---|
| embedders_litserve-0.0.4.tar.gz | 3.8 kB | Without provenance | Details for embedders_litserve-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| embedders_litserve-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for embedders_litserve-0.0.4-py3-none-any.whl |
Total release size: 8.3 kB
Release files / embedders_litserve-0.0.4.tar.gz
| Download URL | embedders_litserve-0.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6c9ff4ae3b10d48319dc704ad8a04017fc33445fa5b1c76743053c09388f51
|
|
BLAKE2b-256 checksum How to use checksums |
51680e54eb070311d77193377784118948a6be4eaff66897f9b43769228d9e86
|
| 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.4-py3-none-any.whl
| Download URL | embedders_litserve-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f0a38b84fb8c2b19e82b2045874233a26a83b15453263a7c4cd73ff28855993
|
|
BLAKE2b-256 checksum How to use checksums |
44976ee1eac168420e57b8c817f0720caf7a7543da3f71429af639867ac70e80
|
| 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.4
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.