from typing import List
import csv


def read_csv(csv_path: str) -> List[str]:
    
    """ Function to read smiles from .csv file

    Input Parameters :
    -------------------------

    smiles_path = str
                 path for the .csv file
    

    Returns :
    -------------------------
    smiles_list : List[str]
                 a list which contains smiles extracted from the input .csv file

    
    """

    assert csv_path.endswith(".csv"), "smiles file should end in .csv"
    smiles_tokens = []
    with open(csv_path, 'r') as wf:
        data = csv.reader(wf, delimiter=',')
        next(data, None)
        for i in data:
            smiles_tokens.append(i[0])
        return smiles_tokens