Skip to main content

Vendored MIT-licensed spaCy en_core_web_md model, so mooring's offline PII name detection works in PyPI-only / air-gapped environments (no Hugging Face, no GitHub at install time).

Project description

mooring-spacy-en-md

A thin companion package that vendors the MIT-licensed spaCy en_core_web_md model so mooring's offline PII name/organisation detection works in PyPI-only / air-gapped environments.

Why it exists

mooring's default name-detection model (GLiNER) downloads from Hugging Face, and spaCy's own models are distributed from GitHub releases — neither reachable in a locked-down corporate network whose only package channel is an internal PyPI mirror. The en_core_web_md pipeline is MIT-licensed, so this package republishes its model directory as ordinary PyPI package data, the one channel such teams have. No Hugging Face, no GitHub, no model mirror at install time.

You don't install this directly — pip install mooring[pii-spacy] pulls it in, then set [ai.pii] name_backend = "spacy" in your mooring config.

For maintainers: vendoring the model before a release

The model bytes are not committed to git (they're ~40 MB). On a machine that can reach the model once:

pip install "spacy>=3.7,<4" en_core_web_md   # or: python -m spacy download en_core_web_md
python scripts/vendor_spacy_model.py          # exports the model into src/mooring_spacy_en_md/_model/
cd packages/mooring-spacy-en-md && uv build   # the wheel now carries the model + its license
uv publish

Keep the spacy pin in mooring's pii-spacy extra compatible with the model's spaCy version (the vendor script prints it). The model's own license/attribution ships inside the vendored _model/ directory (its meta.json).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mooring_spacy_en_md-0.1.0.tar.gz (33.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mooring_spacy_en_md-0.1.0-py3-none-any.whl (33.5 MB view details)

Uploaded Python 3

File details

Details for the file mooring_spacy_en_md-0.1.0.tar.gz.

File metadata

  • Download URL: mooring_spacy_en_md-0.1.0.tar.gz
  • Upload date:
  • Size: 33.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mooring_spacy_en_md-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fbfdabafc66a0c77e82fbc0ad2ea55990dda64fe2a37ab1aae717521e4952f67
MD5 5b9dde1366663cd78d2bb48bbdda9007
BLAKE2b-256 8bbe91d63c64cd1f47e707678be91fc148b3d6481c12d2b12fef5fabba3546bb

See more details on using hashes here.

File details

Details for the file mooring_spacy_en_md-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mooring_spacy_en_md-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mooring_spacy_en_md-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26c5dc4ed2bb8d2aba29c1bfb32b65cdc502287b91e54cfdc866135266a90be4
MD5 70b8f192bb727d966e8342694884428e
BLAKE2b-256 0e65cda49a2ea021a3f961b1ab8ebd4f99c4aed0687e5394bbbe833db4240de5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page