Hi, I noticed that Snowpark allows you to define a stored procedure in Scala, Java, or Python and call it via the SQL call statement (see https://docs.snowflake.com/en/developer-guide/snowpark/python/creating-sprocs.html). You can package your Python code in a Python stored procedure and invoke it from DBT pre or post hook.