Skip to main content

DataHub Describer

Generate missing DataHub descriptions with an OpenAI-compatible LLM.

The connector works from fields upward:

fields → datasets → parent containers

Field prompts use field metadata. Parent prompts use the names and descriptions of their immediate children. Existing descriptions are preserved by default.

In the DataHub UI recipe, last step (Advanced), put datahub-describer in Extra Pip Libraries so the UI executor can load this package.

Install

pip install datahub-describer

Configure

Complete recipe with all available options:

source:
  type: datahub-describer
  config:
    llm_model: "${LLM_MODEL}"
    llm_base_url: "${LLM_BASE_URL}" # Any OpenAI-compatible endpoint.
    llm_api_key: "${LLM_API_KEY}" # Use a DataHub secret.
    llm_timeout_seconds: 60
    llm_max_retries: 0

    field_prompt: |
      You document data catalog fields.
      Return JSON only:
      {
        "fields": [
          {"name": "<exact field name>", "description": "<description>"}
        ]
      }
      Rules:
      - Describe only the requested fields.
      - Use the field name, datatype, and surrounding schema.
      - Do not invent business rules.
      - Write 300-500 characters for each description.

    parent_prompt: |
      You document a data catalog parent from its children.
      Return JSON only:
      {"description": "<description>"}
      Rules:
      - Base the description only on the supplied child names and descriptions.
      - Do not invent business rules.
      - Write 300-500 characters.

    mode: generate
    # delete_generated removes every description that contains [AI GENERATED].

    # Optional scope. The deepest configured level and its children are processed.
    platform: postgres
    container_name: sales
    # dataset_name: customers
    # field_name: email # Requires dataset_name.

    max_datasets: 1000
    max_containers: 5000
    max_fields_per_call: 20
    max_children_per_parent: 100
    document_containers: true
    rewrite_existing_descriptions: false

Development

pip install -e '.[dev]'
pytest

Metadata

Release files for datahub-describer 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datahub-describer 0.1.2
File Size Uploaded Provenance Actions
datahub_describer-0.1.2.tar.gz 15.5 kB Without provenance Details for datahub_describer-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datahub-describer 0.1.2
File Interpreter ABI Platform Actions
datahub_describer-0.1.2-py3-none-any.whl Python 3 none any Details for datahub_describer-0.1.2-py3-none-any.whl

Total release size: 26.8 kB

Release files / datahub_describer-0.1.2.tar.gz

Download URL datahub_describer-0.1.2.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e99cdbb2e7d90e7a790809e8f4b5b1836ac72425e7419290f6da1ae9b82d5ae8
BLAKE2b-256 checksum
How to use checksums
9d17f99ed449a7944b531290ce971f364591e2437f6d1f427400277709670b1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / datahub_describer-0.1.2-py3-none-any.whl

Download URL datahub_describer-0.1.2-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
492369ed51d0e1eae6e3ea081628fbb29ff9ef27d7a0f2796e3958194d71de78
BLAKE2b-256 checksum
How to use checksums
73158d65104abab42d1146dfa70aa6b408d53db950935c547c08168cdaf9835b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for datahub-describer 0.1.2

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.

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