2022-11-30 18:51:23 -05:00
2022-11-23 19:55:19 -05:00
2022-11-30 12:00:32 -05:00
2022-08-24 10:20:43 +02:00
2022-08-24 10:12:57 +02:00
2022-10-14 19:01:38 -04:00
2022-08-24 10:53:57 -04:00
2022-11-23 19:55:19 -05:00

Modal Examples

This is a collection of examples for Modal.

Usage

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.

Examples

  • 01_getting_started/ through 10_integrations/ provide a guided tour through Modal's concepts and capabilities.
  • data/ contains data engineering and analytics examples.
  • integrations/ contains packages integrating Modal's platform with third-parties.
  • misc/ contains uncategorized, miscellaneous examples.
  • ml/ contains machine learning examples, including training examples and full-stack ML apps.

License

The MIT license.

Languages
Python 93.9%
JavaScript 2.6%
HTML 1.7%
TypeScript 1.2%
Jupyter Notebook 0.3%
Other 0.2%