DataHub Classifier
Classify DataHub fields against a customer-provided tag list using an OpenAI-compatible LLM, then apply those tags.
Install:
pip install datahub-ai-classifier
Example recipe: datahub_classifier.example.yml.
Both plugins must be in the same recipe, with the same taxonomy map.
source:
type: postgres
config:
classification:
enabled: true
sample_size: 10
max_workers: 1
classifiers:
- type: datahub_classifier.classifier:AIPIIClassifier
config:
llm_model: gpt-4.1-mini
llm_base_url: https://api.openai.com/v1
llm_api_key: "<your-api-key>"
llm_timeout_seconds: 60
llm_max_retries: 0
confidence_threshold: 0.6
max_samples: 8
taxonomy: &taxonomy
C1: >
Restricted identifiers. Use for national IDs and tax numbers
such as SSN values like 123-45-6789 stored in columns named
ssn.
C2: >
Confidential personal and payment data. Use for a person's
full_name, email, phone, home_address, and date_of_birth, and
for order_total money amounts.
C3: >
Internal operational data. Use for customer_id, order_id,
loyalty_tier, currency, order status, shipped_at, and
created_at timestamps.
transformers:
- type: datahub-classifier
config:
taxonomy: *taxonomy
Missing tags are created. Existing tags are not overwritten. Classifier alone leaves glossary terms and does not create tags.
Development
pip install -e '.[dev]'
pytest
Metadata
Release files for datahub-ai-classifier 0.1.0
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 |
|---|---|---|---|---|
| datahub_ai_classifier-0.1.0.tar.gz | 13.1 kB | Without provenance | Details for datahub_ai_classifier-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datahub_ai_classifier-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for datahub_ai_classifier-0.1.0-py3-none-any.whl |
Total release size: 22.9 kB
Release files / datahub_ai_classifier-0.1.0.tar.gz
| Download URL | datahub_ai_classifier-0.1.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fb70d982ff6ca27d330dab293442bcd02751498038dfda441dfcbe94e0d5c0e
|
|
BLAKE2b-256 checksum How to use checksums |
6fa551552a3c18728fa318ca80decf1aedf74ffc5db9f7ea0c4f017ba07a2226
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / datahub_ai_classifier-0.1.0-py3-none-any.whl
| Download URL | datahub_ai_classifier-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
441d935bb2d262ecad6542b496af75bc769ca92538932136e4506669c3455ef3
|
|
BLAKE2b-256 checksum How to use checksums |
74b3d62ea5b8204a6cf1e2d2ab93af2e67259c230cd1cb34f6e75ae9d8f2a426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for datahub-ai-classifier 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.
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.