:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from posthog.models.user import User
from products.experiments.backend.facade.contracts import ExperimentCreator
def to_experiment_creator(user: User) -> ExperimentCreator:
return ExperimentCreator(
id=user.id,
uuid=user.uuid,
distinct_id=user.distinct_id,
first_name=user.first_name,
last_name=user.last_name,
email=user.email,
is_email_verified=user.is_email_verified,
hedgehog_config=user.hedgehog_config,
role_at_organization=user.role_at_organization,
)