Building Python Projects

Python Build Settings

A. Select your version of Python
- Currently gravityAI only supports versions 3.8 and 2.7.17
B. Select your entrypoint script
C. Select your requirements.txt file
D. Specify your command line arguments
- Say if your script is to run like python entrypoint.py test_file.csv result.csv then you would simply input: {input} {output}
- See input and output for more details.
E. Select the type of data for input/output
F. Specify schema paths for data
- See schema path for more details.
G. Specify data type for data
H. Review Input/Output Schema

Building R Projects

R Build Settings

A. Select your entrypoint script
B. Specify your command line arguments
C. Select the type of data for input/output
D. Specify schema paths for data
- See schema path for more details.
E. Select the type of data for input/output
F. Review Input/Output Schema

Dependency Management

While we have plans for expanding dependency management support, currently we only manage dependencies through requirements.txt files (Python) or renv (R).

There is no need to install/package your dependencies prior to the upload; we will install them in the container during our build process.

Directory Structure

There are numerous ways of structuring your projects, and we try our best not to dictate to you how to do so. As such, you can have as many nested directories as you like (but being reasonable is always a nice thing ;-)). We should be able to detect both your entry script and the file used for managing dependencies; whether this be a requirements.txt file (in the case of coding a Python project) or renv/ (in the case of R projects).