Warehouse Source Type Definitions (facade/types.py)

posthog · products/warehouse_sources/backend/facade/types.py · python · MIT
database, pos, dev-tools, lang:python, tag:data

Shared type definitions and enums for data warehouse integration. Use these to maintain type safety across warehouse-related services and API contracts.

# Source: https://github.com/PostHog/posthog | License: MIT | Copyright 2020-2026 PostHog Inc
# Provided via justclaw.it.com; keep this notice with the code.
"""
Shared type surface for warehouse_sources.

The shared enums and typed structures that cross-product consumers compare against or annotate with.
The choices enums use ``LabeledStrEnum`` from ``posthog.enums``, so this module does not import Django.
The module is in the facade so that the contract-check inputs watch these types.
``backend.types`` re-exports them for product-internal use.
"""

import typing
from enum import StrEnum

from posthog.enums import LabeledStrEnum

__all__ = [
    "DIRECT_ENGINE_BY_SOURCE_TYPE",
    "DataWarehouseManagedViewSetKind",
    "DataWarehouseTableCreatedVia",
    "DataWarehouseTableFormat",
    "E

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key