.. _scripts_root: Writing Scripts =============== There are two methods of instantiating Photons in a Python script: * Using the :ref:`library_setup ` function, or * Registering a :ref:`task ` like the tasks shown in the :ref:`CLI commands ` section. Instantiating Photons reads in the configuration and registers all the functionality provided by the various modules. .. toctree:: :hidden: library_setup photons_action photons_tasks logging