Node Inputs
- Inputs: Define the arguments that you want your function to have. Example input could be named ‘location’.
- Function Body: This is the body of the function that you want to run. You can write a Python or JavaScript function here that will execute when the node runs. You can access the ‘Inputs’ through their names within your function. Outputs can be set in this function and will be accessible through Gumloop outputs.
- Outputs: Define the outputs that you want your function to have. An example output could be ‘temperature’. This is the name of the outputs of your function which will be returned as values accessible through Gumloop outputs.
Available Libraries
Python Libraries
You can import and use a wide range of Python libraries in your function. Here some of the available packages, organized by category:- Data Analysis and Manipulation: pandas, numpy, scipy, xarray
- Image Processing: opencv-python, imageio, scikit-image
- Machine Learning: scikit-learn, joblib
- Natural Language Processing: nltk, textblob, spacy, gensim
- Web Scraping: beautifulsoup4, requests, urllib3, aiohttp
- Plotting and Visualization: matplotlib, seaborn, plotly, bokeh
- File Handling: openpyxl, xlrd, python-docx
- Audio Processing: librosa, soundfile
- Testing: pytest
- Timezone: pytz
- Web Server: tornado
Full List of Packages:
For a complete list of available packages, please refer to our requirements.txt. To import a Python package, simply use the standard import statement within your function body. For example:JavaScript Libraries
The following JavaScript libraries are available:- AI and Machine Learning SDKs: ai, @ai-sdk/openai, @ai-sdk/azure, @ai-sdk/anthropic, @ai-sdk/amazon-bedrock, @ai-sdk/google, @ai-sdk/google-vertex, @ai-sdk/mistral, @ai-sdk/cohere, @ai-sdk/groq
require
statement within your function body. For example: