Install and import packages in Zapier Functions

Beta

This product is in open beta. It’s available for use but still in active development and may change.

Packages are pre-built code libraries that you can use in your function to save time when writing function code. In Zapier Functions, you can use existing Python packages by installing and importing them. 

 

Install a package

To install a package:

  1. From an existing function, click the Packages icon on the left sidebar. 
  2. In the expanded left sidebar, click Add package. A dialog box will open. 
  3. Enter the name of the package
    1. (Optional) You can also enter the package version you want to use.
  4. Click Save.

You can now import the package into your code.

 

Import a package

To import a package, place the following line in your code file:

import <name of package>

You can then use the functions from that package in your code.

 

Write your own Python functions

You can also write your own functions and save them in separate files to reuse in your main.py file. Learn how to import files and their functions.

 

Provide feedback and get help

Submit a feature request, provide feedback on existing features, or get help from the Zapier Functions team. You can also discuss Functions with other users on Zapier's Early Access Program Slack.

Was this article helpful?
1 out of 1 found this helpful