R
RunPod10mo ago
frankvp11

run a function in a pod

Suppose I had a function to do some computation, and I wanted to run that inside a pod - how would I go about doing that entirely from the python sdk?
4 Replies
Jason
Jason10mo ago
yes Well, i mean python can do wide range of computation just write code, execute it with python like normal people do inside containers pods = containers
frankvp11
frankvp11OP10mo ago
oh ok
Encyrption
Encyrption10mo ago
Sounds like what Serverless workers provide. You have to take your python code and wrap it in a docker container but then you can reach your python via an API.
Jason
Jason10mo ago
Yes the difference with pods is you gotta call the "wrapper" from the Runpod's serverless handler first

Did you find this page helpful?