aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python_udf/python_udf.h
blob: 16d7da096ddecb9d501299f9fecc8755c9340fe2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <yql/essentials/public/udf/udf_registrator.h>

namespace NYql {
namespace NUdf {

enum class EPythonFlavor {
    System,
    Arcadia,
};

void RegisterYqlPythonUdf(
        IRegistrator& registrator,
        ui32 flags,
        TStringBuf moduleName,
        TStringBuf resourceName,
        EPythonFlavor pythonFlavor);

TUniquePtr<IUdfModule> GetYqlPythonUdfModule(
    TStringBuf resourceName,
    EPythonFlavor pythonFlavor,
    bool standalone);

} // namespace NUdf
} // namespace NYql