Metadata-Version: 2.4
Name: mloda-enterprise
Version: 0.11.0
Summary: All enterprise plugins for mloda (production use needs a license agreement: https://mloda.ai/enterprise)
Author-email: Tom Kaltofen <info@mloda.ai>
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://mloda.ai
Project-URL: Repository, https://github.com/mloda-ai/mloda-registry
Keywords: mloda,mloda-plugin,anonymization,pii,pseudonymization,audit,openlineage,column-lineage,binary-model
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: <3.15,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mloda<0.18.0,>=0.17.0
Requires-Dist: mloda-community-extenders-shared>=0.11.0
Requires-Dist: mloda-community-binary-model>=0.11.0
Provides-Extra: ed25519
Requires-Dist: cryptography>=42; extra == "ed25519"
Provides-Extra: otel
Requires-Dist: opentelemetry-api<2,>=1.37; extra == "otel"
Provides-Extra: openlineage
Requires-Dist: mloda-community-openlineage~=0.11.0; extra == "openlineage"
Provides-Extra: anonymizer
Requires-Dist: mloda-anonymizer-binary<0.2.0,>=0.1.3; extra == "anonymizer"
Requires-Dist: pyarrow>=25; extra == "anonymizer"
Dynamic: license-file

# mloda-enterprise

All enterprise plugins for mloda. Source-available: free for development, testing and evaluation; production use needs a license agreement: https://mloda.ai/enterprise

Extras:

- `[ed25519]` Ed25519 manifest signer
- `[otel]` OTel audit log sink
- `[openlineage]` lineage facets extender
- `[anonymizer]` the anonymizer wheel and pyarrow

## Quick start: anonymizer

```bash
pip install "mloda-enterprise[anonymizer]"
```

Platforms: Linux x86_64 and aarch64, macOS x86_64 and arm64, Windows x86_64, Python 3.10 to 3.14 (details on https://pypi.org/project/mloda-anonymizer-binary/).

License key: every run of a binary-backed plugin needs a key issued by mloda, for an evaluation (request one at https://mloda.ai/enterprise) or under a license agreement, read from the first of these that is set: `MLODA_LICENSE_FILE` (path to the key file), `MLODA_LICENSE_KEY` (the token itself). After `exp` a key keeps working for its grace days with a WARNING in the log; renew before. Without a usable key the feature still resolves and the run fails with `LicenseMissingError` or `LicenseInvalidError`; no other plugin takes its place. Development and testing use the simulated binary and test tokens signed with the published test key from `mloda-testing[binary-model]` instead (see the guide linked below).

Key: generate it once with `python -c "import secrets; print(secrets.token_hex(32))"`, store it as a secret and export it as `PII_KEY` (the env var `pii_key_env` names). Keep it stable, a new key gives unrelated pseudonyms.

```python
from mloda.user import Feature, Options, PluginLoader, mloda

PluginLoader.all()

result = mloda.run_all(
    [
        Feature(
            "pseudonymized_email",
            Options(
                context={
                    "pseudonymization_algorithm": "hmac_sha256",
                    "pii_key_env": "PII_KEY",
                    "in_features": "email",
                }
            ),
        )
    ],
    compute_frameworks=["PyArrowTable"],
    api_data={"customers": {"email": ["ada@example.com", None]}},
)
print(result[0])
```

Each value becomes 64 lowercase hex characters; nulls stay null.

Options and key derivation: https://github.com/mloda-ai/mloda-registry/blob/main/docs/guides/feature-group-patterns/29-binary-backed-features.md
