Hello, World!
¶
Module containing Python code for the Python Package Template.
This module is an example for the Python Package Template.
Attributes: |
|
---|
Classes:
Name | Description |
---|---|
PythonPackageTemplate |
|
Functions:
Name | Description |
---|---|
main |
Example main function for the Python Package Template. |
PythonPackageTemplate ¶
Bases: object
Methods:
Name | Description |
---|---|
__init__ |
Instantiate the Python Package Template example class. |
example_method |
Example method for the Python Package Template. |
Source code in src/pypackitup/helloworld.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
__init__ ¶
__init__(example_init_parameter='Hello')
Instantiate the Python Package Template example class.
Parameters: |
|
---|
Attributes: |
|
---|
Source code in src/pypackitup/helloworld.py
18 19 20 21 22 23 24 25 26 27 28 |
|
example_method ¶
example_method(example_parameter='World')
Example method for the Python Package Template.
Parameters: |
|
---|
Examples:
>>> from pypackitup.helloworld import PythonPackageTemplate
>>> example_class_instance = PythonPackageTemplate()
>>> print(example_class_instance.example_method())
Hello, World!
Returns: |
|
---|
Source code in src/pypackitup/helloworld.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
main ¶
main()
Example main function for the Python Package Template.
Returns: |
|
---|
Source code in src/pypackitup/helloworld.py
52 53 54 55 56 57 58 59 60 |
|