File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # What Is Python's ` __init__.py ` For?
2+
3+ This folder contains the code discussed in the Real Python tutorial on [ Python's ` __init__.py ` file] ( https://realpython.com/python-init-py/ ) .
4+
5+ You can start a Python interpreter inside this folder, then interact with the modules like shown in the tutorial.
Original file line number Diff line number Diff line change 1+ # print(f"Importing {__name__}")
2+
3+ __version__ = "0.1.0"
4+
5+ from .audio .utils import enhance as audio_enhance
6+ from .audio .utils import wobbulate
7+ from .graphics .utils import enhance as graphics_enhance
8+ from .graphics .utils import solarize
Original file line number Diff line number Diff line change 1+ # print(f"Importing {__name__}")
Original file line number Diff line number Diff line change 1+ # print(f"Importing {__name__}")
2+
3+ def wobbulate ():
4+ print ("Wibble wobble" )
5+
6+ def enhance ():
7+ print ("Enhancing audio" )
8+
9+ _secret_password = "Alakazam!"
10+ __top_secret_password = "!mazakalA"
Original file line number Diff line number Diff line change 1+ # print(f"Importing {__name__}")
Original file line number Diff line number Diff line change 1+ # print(f"Importing {__name__}")
2+
3+ __all__ = ["solarize" , "enhance" ]
4+
5+ def solarize ():
6+ print ("Solarizing" )
7+
8+ def enhance ():
9+ print ("Enhancing graphics" )
10+
11+ indiana_pi = 3.2
Original file line number Diff line number Diff line change 1+ __version__ = "1.0.0"
2+ magic_number = 42
You can’t perform that action at this time.
0 commit comments