This is a collection of examples for Modal. Use these examples to learn Modal and build your own robust and scalable applications.
First, sign up for a free account at modal.com and follow
the setup instructions to install the modal
package and set your API key.
The examples are organized into several folders based on their category. You can generally run the files in any folder as ordinary Python programs, with a command like:
python -m 01_getting_started.hello_world
Although these scripts are run on your local machine, they'll communicate with Modal and run in our cloud, spawning serverless containers on demand.
01_getting_started/
through10_integrations/
provide a guided tour through Modal's concepts and capabilities.misc/
contains uncategorized, miscellaneous examples.
The MIT license.