# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.12.0
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
        
import pandas as pd    
import MdsSoftwareSetup533.data_load as dl
from MdsSoftwareSetup533 import base_class
class postgresql(base_class.base):
    data=dl.read_data()
    def __init__(self,software_name,os):
        self.software_name=software_name
        self.os=os
    def Installation_Guide(self):
        print('\033[1m'+base_class.base.message(self))
        data1=postgresql.data[postgresql.data["OS"]=="Mac"]
        data1=data1[data1["Software"]=="PostgreSQL"]
        print('\033[1m'+"Below is the link containing step-by-step installation instructions:\n")
        ig=data1.to_string(columns=['Installation_Guide'], index=False,header=False)
        return ig
    
    def Description(self):
        data1=postgresql.data[postgresql.data["OS"]=="Mac"]
        data1=data1[data1["Software"]=="PostgreSQL"]
        print('\033[1m'+"Below is a brief description of PostgreSQL:\n")
        desc=data1.to_string(columns=['Description'], index=False,header=False)
        return desc
    
    def Tutorial(self):
        data1=postgresql.data[postgresql.data["OS"]=="Mac"]
        data1=data1[data1["Software"]=="PostgreSQL"]
        print('\033[1m'+"Below is the link for a video tutorial of PostgreSQL:\n")
        Tutorial=data1.to_string(columns=['Tutorial'], index=False,header=False)
        return Tutorial