📄️ Test locally
As you develop your Handler Function, you will, of course, want to test it with inputs formatted similarly to what you will be sending in once deployed as a worker. The quickest way to run a test is to pass in your input as an argument when calling your handler file. Assuming your handler function is inside of a file called your_handler.py and your input is {"input" "The quick brown fox jumps"}} you would call your file like so:
📄️ Use environment variables
Incorporating environment variables into your Handler Functions is a key aspect of managing external resources like S3 buckets.
📄️ Test response time
Learn to test to test your API response time.