Skip to content

API documentation

salut

say_hello_with_message(msg: str) -> str

Awesome function to say hello with message.

Parameters:

Name Type Description Default
msg str

The message of your dreams.

required

Returns:

Name Type Description
str str

The standard sentence with your message.

Source code in pptm/salut.py
 7
 8
 9
10
11
12
13
14
15
16
17
def say_hello_with_message(msg: str) -> str:
    """Awesome function to say hello with message.

    Args:
        msg (str): The message of your dreams.

    Returns:
        str: The standard sentence with your message.
    """
    current_time = datetime.utcnow().strftime("%Y-%m-%d %H-%M-%S") + "-UTC"
    return f"Hello, the message is: {msg}. The current time is: {current_time}."

wow(quantity: float) -> str

Diplays a Numpy array with one element.

Source code in pptm/salut.py
20
21
22
def wow(quantity: float) -> str:
    """Diplays a Numpy array with one element."""
    return f"Numpy result: {np.array([quantity])}"