Skip to content

hello_world

ensembl.template.hello_world

Hello world module

hello(word)

Returns the concatenation of "Hello " with the given string.

Parameters:

Name Type Description Default
word str

The string you want to concatenate to "Hello ".

required
Source code in src/ensembl/template/hello_world.py
21
22
23
24
25
26
27
28
def hello(word: str) -> str:
    """Returns the concatenation of "Hello " with the given string.

    Args:
        word: The string you want to concatenate to "Hello ".

    """
    return f"Hello {word}"

main()

Module's entry-point.

Source code in src/ensembl/template/hello_world.py
31
32
33
34
35
36
def main() -> None:
    """Module's entry-point."""
    parser = argparse.ArgumentParser(prog="Greetings program", description="Says 'hi' to the argument given")
    parser.add_argument("word")
    args = parser.parse_args()
    hello(args.word)