Filip Pytloun | faab44c | 2015-10-06 16:28:32 +0200 | [diff] [blame^] | 1 | |
| 2 | ====== |
| 3 | Python |
| 4 | ====== |
| 5 | |
| 6 | Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale. |
| 7 | |
| 8 | Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library. |
| 9 | |
| 10 | Available states |
| 11 | ================ |
| 12 | |
| 13 | .. contents:: |
| 14 | :local: |
| 15 | |
| 16 | ``python`` |
| 17 | ---------- |
| 18 | |
| 19 | Install defined packages. |
| 20 | |
| 21 | ``python.environment`` |
| 22 | ---------------------- |
| 23 | |
| 24 | Also install defined packages. |
| 25 | |
| 26 | Available metadata |
| 27 | ================== |
| 28 | |
| 29 | .. contents:: |
| 30 | :local: |
| 31 | |
| 32 | ``service.environment`` |
| 33 | ----------------------- |
| 34 | |
| 35 | Basic Python environment |
| 36 | |
| 37 | ``service.environment.development`` |
| 38 | ----------------------------------- |
| 39 | |
| 40 | Development Python environment. |
| 41 | |
| 42 | ``python.environment.django`` |
| 43 | ----------------------------- |
| 44 | |
| 45 | Python Django environment. |
| 46 | |
| 47 | Sample pillars |
| 48 | ============== |
| 49 | |
| 50 | Simple Python environment |
| 51 | |
| 52 | .. code-block:: yaml |
| 53 | |
| 54 | python: |
| 55 | environment: |
| 56 | enabled: true |
| 57 | |
| 58 | Development Python environment |
| 59 | |
| 60 | .. code-block:: yaml |
| 61 | |
| 62 | python: |
| 63 | environment: |
| 64 | enabled: true |
| 65 | module: |
| 66 | development: true |
| 67 | |
| 68 | Python django environment |
| 69 | |
| 70 | .. code-block:: yaml |
| 71 | |
| 72 | python: |
| 73 | environment: |
| 74 | enabled: true |
| 75 | module: |
| 76 | django: true |
| 77 | |
| 78 | Read more |
| 79 | ========= |
| 80 | |
| 81 | * https://www.python.org/ |