Skip to main content

pyduck-janitor-embeddings

PyPI version Python versions License: MIT CI

Bundled embedding models for pyduck-janitor.

This companion wheel ships sentence-transformers model weights inside the package so pyduck_janitor.embed_install() works without contacting HuggingFace. It's the offline install path for air-gapped machines, CI, and anyone who'd rather not pull weights at first use.

License

  • The companion wheel's code (this pyduck_janitor_embeddings/ package) is MIT, matching the parent pyduck-janitor.
  • The bundled model weights are redistributed under their upstream license (Apache 2.0 for all-MiniLM-L6-v2); a NOTICE file inside each model directory documents the source URL and full attribution.
  • See data/embeddings/<slug>/NOTICE inside the installed wheel for the per-model trail.

Install

# Recommended — pulls the companion wheel + sentence-transformers
pip install pyduck-janitor[embeddings]

# Or install this wheel directly
pip install pyduck-janitor-embeddings

Use

import pyduck_janitor as pj

# Copies the bundled weights to the local cache. No network.
pj.embed_install()

# Inspect
pj.embed_list_installed()

Models bundled

Model Dim Size License
sentence-transformers/all-MiniLM-L6-v2 384 ~90 MB Apache 2.0

Model weights are redistributed under their original licenses; see data/embeddings/<model>/LICENSE inside the wheel for the full text.

Want a different model?

The bundled default is fine for most tasks, but pyduck_janitor.embed_install accepts any sentence-transformers-compatible model from HuggingFace Hub:

import pyduck_janitor as pj

pj.embed_install("hf:BAAI/bge-small-en-v1.5")               # better quality
pj.embed_install("hf:intfloat/multilingual-e5-small")      # multilingual
pj.embed_install("hf:org/model@sha256:abc123...")           # pinned revision
pj.embed_install("/opt/models/my-finetuned-encoder")        # local path

For gated/private models, set HF_TOKEN in your environment. See the parent project's README for the full guide.

Rebuilding the wheel (maintainers)

The weights are not committed to git. To populate them before a build:

pip install -e ".[build]"
python scripts/fetch_models.py   # downloads into src/.../data/embeddings/
python -m build                  # wheel now carries the weights

Why a separate wheel?

pyduck-janitor stays small (~50 KB) so users who only need the icu/fts text verbs don't download 90 MB of model weights. This companion package is only pulled when you ask for embeddings — via the [embeddings] extra or an explicit install.

Metadata

Release files for pyduck-janitor-embeddings 0.1.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 pyduck-janitor-embeddings 0.1.0
File Size Uploaded Provenance Actions
pyduck_janitor_embeddings-0.1.0.tar.gz 83.5 MB With provenance Details for pyduck_janitor_embeddings-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyduck-janitor-embeddings 0.1.0
File Interpreter ABI Platform Actions
pyduck_janitor_embeddings-0.1.0-py3-none-any.whl Python 3 none any Details for pyduck_janitor_embeddings-0.1.0-py3-none-any.whl

Total release size: 167.0 MB

Release files / pyduck_janitor_embeddings-0.1.0.tar.gz

Download URL pyduck_janitor_embeddings-0.1.0.tar.gz
Size 83.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ae45085da5018ca9e753e58d72cdb880cbc182a9bbcc7a15551f6638fd3871d3
BLAKE2b-256 checksum
How to use checksums
5e59e85cc45b401b41c52f81b2fc1429b84b33e9d39bab10d83e98eda059fba2
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 3, 2026.

Transparency log

Release files / pyduck_janitor_embeddings-0.1.0-py3-none-any.whl

Download URL pyduck_janitor_embeddings-0.1.0-py3-none-any.whl
Size 83.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a49ad1d21a1183093a224001dc5b429bd2801b575947b6a5579eff4b74be3cc8
BLAKE2b-256 checksum
How to use checksums
9dbd32373b0aab95cdaca6fd78ffd3a3b9526af4f5c1e83e1b8471a999c31683
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 3, 2026.

Transparency log

Security for pyduck-janitor-embeddings 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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyduck_janitor_embeddings-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 3, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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