Skip to content

common module

The common module contains common functions and classes used by the other modules.

get_version()

Returns the version of the paqprueba package.

Returns:

Type Description
str

The version of the paqprueba package.

Source code in paqprueba/common.py
def get_version():
    """Returns the version of the paqprueba package.

    Returns:
        str: The version of the paqprueba package.
    """

    return "0.0.1"

hello_world()

Prints "Hello World!" to the console.

Source code in paqprueba/common.py
def hello_world():
    """Prints "Hello World!" to the console.
    """
    print("Hello World!")

random_number()

Return a random number between 0 and 1.

Returns:

Type Description
float

A random number between 0 and 1.

Source code in paqprueba/common.py
def random_number():
    """Return a random number between 0 and 1.

    Returns:
        float: A random number between 0 and 1.
    """

    import random
    return random.random()