Creating a Python Function0:00
Most of the functions we're going to deploy in this series are node functions, because after php I'm most familiar with JavaScript. But I do want to show you how you can deploy other languages. It's very simple. We're going to create an index.py function. So on this one we'll be deploying a Python function. And the handler looks a little bit different. If we look at the handler of index.js, it's obviously JavaScript named handler. For index.py, we have def handler. It takes event and context.
Deploying and Testing Python1:58
And it's still in a file called index. So we're okay there. We'll go ahead and deploy again. sidecar deploy --activate. You can see we're now deploying a Python runtime. And it's activated and ready to go. From the browser, let's hit it again. We see the old hello Jeffrey from our JavaScript handler. If we refresh, we see hello from Python. So now we're running Python from PHP.
