.. _l-modules: Modules ======= .. contents:: :local: :depth: 1 Summary +++++++ +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | module | truncated documentation | +===============================================================+====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ | :ref:`__init__ ` | module ``python3_module_template`` Module *python3_module_template*. Empty module, template for others. :githublink:`%|py|6` | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`exclude_from_code_coverage ` | module ``python3_module_template.subproject2.exclude_from_code_coverage`` This file is excluded from the code coverage while running unit test. See `setup.py `_ to see how to configurate this option. :githublink:`%|py|8` | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`myexample ` | module ``python3_module_template.subproject.myexample`` This the documentation of this module (myexampleb). :githublink:`%|py|7` | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`myexample2 ` | module ``python3_module_template.subproject2.myexample2`` This the documentation of this module (myexample2). To make a reference to a blog post, just read :ref:`label-to-this-blogpost`. The following documentation comes from a directive `runpython `_ which outputs documentation on the standard output:: .. runpython:: :showcode: for l in range(0,10): print(" line", l) Which gives: .. runpython:: :showcode: for l in range(0,10): print(" line", l) And without the input code: .. runpython:: for l in range(0,10): print(" line", l) You can also add option *rst*:: .. runpython:: :rst: for l in range(0,10): print("**line**", "*" +str(l)+"*") print('') Which displays interpreted RST: .. runpython:: :rst: for l in range(0,10): print("**line**", "*" +str(l)+"*") print('') It can be run in a separate process with option ``:process:`` (click on source): .. runpython:: :process: import python3_module_template import os print(os.path.split(python3_module_template.__file__)[-1]) :githublink:`%|py|61` | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`myexampleb ` | module ``python3_module_template.subproject.myexampleb`` This the documentation of this module (myexampleb). :githublink:`%|py|5` | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. toctree:: :maxdepth: 1 python3_module_template/__init__ python3_module_template/subproject/myexample python3_module_template/subproject/myexampleb python3_module_template/subproject2/exclude_from_code_coverage python3_module_template/subproject2/myexample2