Python : Policy as a Code :

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 


YAML - Policy as a Code

https://pynative.com/python-yaml/

We can read the YAML file using the PyYAML module's yaml. load() function.
 This function parse and converts a YAML object to a Python dictionary
( dict object). This process is known as Deserializing YAML into a Python.05-Apr-2021

Installing PyYAML

 

Installing PIP :  

https://linuxize.com/post/how-to-install-pip-on-centos-7/

1. Pip is not available in CentOS 7 core repositories. To install pip we need to enable the EPEL repository 

$ sudo yum install epel-release

2. Once the EPEL repository is enabled we can install pip and all of its dependencies with the following command:

$ sudo yum install python-pip


Installed Python version 3, Use the below link to install : Version

https://phoenixnap.com/kb/how-to-install-python-3-centos-7

bash-4.2$ python3 --version
Python 3.6.8

Comments

Popular posts from this blog

Jenkins file | declarative pipeline scripting

Jenkins : Webhooks

JENKINS -- My Work -Project - DNS