Skip to content

Python: Structured Representation

We present in what follows the structured representation for the Python scripting language.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
    "$schema": "http://json-schema.org/draft-04/schema#", 
    "allOf": [
        {
            "required": [
                "name"
            ], 
            "type": "object", 
            "properties": {
                "build": {
                    "type": "string", 
                    "description": "Application build. e.g. VTST"
                }, 
                "shortName": {
                    "type": "string", 
                    "description": "The short name of the application. e.g. qe"
                }, 
                "version": {
                    "type": "string", 
                    "description": "Application version. e.g. 5.3.5"
                }, 
                "name": {
                    "type": "string", 
                    "description": "The name of the application. e.g. espresso"
                }, 
                "summary": {
                    "type": "string", 
                    "description": "Application's short description."
                }
            }, 
            "title": "application schema (base)"
        }
    ], 
    "type": "object", 
    "properties": {
        "name": {
            "enum": [
                "python"
            ]
        }, 
        "exec": {
            "enum": [
                "python"
            ]
        }, 
        "summary": {
            "enum": [
                "Python Script"
            ]
        }, 
        "environment": {
            "type": "object", 
            "description": "Optional environment variables exported before running the Python script"
        }, 
        "version": {
            "enum": [
                "2.7.5", 
                "3.6.1"
            ]
        }, 
        "arguments": {
            "type": "string", 
            "description": "Optional arguments passed to the Python script"
        }, 
        "dependencies": {
            "type": "array", 
            "description": "Optional Python dependencies, e.g. amqp==1.4.6"
        }, 
        "flavor": {
            "enum": [
                "python2", 
                "python3"
            ]
        }
    }, 
    "title": "Python Programing Language Schema"
}
1
2
3
4
5
6
7
8
{
    "name": "python", 
    "exec": "python", 
    "summary": "Python Script", 
    "version": "2.7.5", 
    "shortName": "py", 
    "flavor": "python2"
}