aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/bindings/py_struct.h
blob: 79a380283fb3a1f57aa1f951f0d94762d6cd9357 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "py_ptr.h"
#include "py_ctx.h"

namespace NPython {

TPyObjectPtr ToPyStruct(
        const TPyCastContext::TPtr& castCtx,
        const NKikimr::NUdf::TType* type,
        const NKikimr::NUdf::TUnboxedValuePod& value);

NKikimr::NUdf::TUnboxedValue FromPyStruct(
        const TPyCastContext::TPtr& ctx,
        const NKikimr::NUdf::TType* type, PyObject* value);

} // namespace NPython