Adding Modules

The Napkin runtime comes pre-installed with thousands of the most downloaded packages from PyPI. To use any of these modules in your functions, you must first add them via the "Modules" tab in the Napkin UI. This is so that that Napkin knows which version of the module to import at runtime.

Importing Modules

Once you've added a module to your function, you import it the same as you normally would in Python.

# example
import requests
from bs4 import BeautifulSoup