Writing custom functions

Follow these guidelines when writing custom functions to use in Build.

The standard Python library is supported, except for the logging service. As an alternative to logging, you can use print() statements totaling up to 4 KB in length. If needed, you can split results into multiple print statements.

In addition to the standard Python library, you can import these external libraries at the version indicated.

  • beautifulsoup4 4.11.1

  • dateparser 1.1.4

  • html5lib 1.0.1

  • imapclient 2.3.0

  • jinja2 3.0

  • lxml 4.9.1

  • pandas 1.5.3

  • pdfkit 0.6.1

  • pikepdf 5.2.0

  • pillow 9.3.0

  • pypdf2 1.27.5

  • pypdfium2 2.4.1

  • spacy 2.3.9

  • usaddress 0.5.10

  • xlsxwriter 1.0.2

  • zipcodes 1.2.0

For example:

import pandas as pd
print(pd.Series([1,2,3]))

Related links

Custom cleaning function

Custom validation function

Custom integration function