py_resource.h 461 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "py_ptr.h"
  3. #include "py_ctx.h"
  4. namespace NPython {
  5. extern const char ResourceCapsuleName[];
  6. TPyObjectPtr ToPyResource(
  7. const TPyCastContext::TPtr& ctx,
  8. const NKikimr::NUdf::TType* type,
  9. const NKikimr::NUdf::TUnboxedValuePod& value);
  10. NKikimr::NUdf::TUnboxedValue FromPyResource(
  11. const TPyCastContext::TPtr& ctx,
  12. const NKikimr::NUdf::TType* type,
  13. PyObject* value);
  14. } // namspace NPython