Skip to content

Data

This implementation of Machine Learning uses Python under-the-hood. Hence, its workflow units adopt the schema used by Python Units.

{
    "$id": "software-directory/scripting/python",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Python Programing Language Schema",
    "type": "object",
    "allOf": [
        {
            "$ref": "../../software/application.json"
        }
    ],
    "properties": {
        "name": {
            "enum": [
                "python"
            ]
        },
        "flavor": {
            "enum": [
                "python2",
                "python3"
            ]
        },
        "summary": {
            "enum": [
                "Python Script"
            ]
        },
        "version": {
            "enum": [
                "2.7.5",
                "3.6.1"
            ]
        },
        "exec": {
            "enum": [
                "python"
            ]
        },
        "arguments": {
            "description": "Optional arguments passed to the Python script",
            "type": "string"
        },
        "environment": {
            "description": "Optional environment variables exported before running the Python script",
            "type": "object"
        },
        "dependencies": {
            "description": "Optional Python dependencies, e.g. amqp==1.4.6",
            "type": "array"
        }
    }
}
{
    "exec": "python",
    "flavor": "python2",
    "name": "python",
    "shortName": "py",
    "summary": "Python Script",
    "version": "2.7.5"
}