
"""
This is a test file to see how pip installability works.
Author: Brahmadin Varun
"""
import matplotlib.pyplot as plt

def add(x,y):
    """Just a simple add function"""
    return x + y

def get_name():
    """
    Just a simple function that returns the name
    """
    return " The toolkit"

def help():
    """
    Help for the whole document
    """
    return "This is a test for pip installability"


def plot_test_graph():
    """
    Creates a simple line graph to test other libraries.
    """
    # Some data to plot
    x = [0, 1, 2, 3, 4, 5]
    y = [0, 1, 4, 9, 16, 25] 

    plt.figure(figsize=(8, 5))
    plt.plot(x, y, marker='o', linestyle='-', color='b', label='Growth')
    
    # Adding titles and labels
    plt.title("Simple Square Growth Graph")
    plt.xlabel("Input Value (x)")
    plt.ylabel("Squared Value (y)")
    plt.legend()
    plt.grid(True)
    
    plt.show()

class Toolkit:
    """
    A simple class to test how classes would work with pip install.
    """
    def __init__(self, owner="Guest"):
        self.owner = owner

    def say_hello(self):
        """Greets the user and identifies the toolkit."""
        return f"Hello {self.owner}, welcome to the {get_name()}!"

    def calculate(self, a, b):
        """Uses the add function to perform a task."""
        return add(a, b)
    
    def suntract(self,a,b):
        """Just a simple subtract function"""
        return a - b