:orphan:
.. _basic:
Basics
------
In this section, you'll learn how to use the basic building blocks of Flyte using ``flytekit``.
``flytekit`` is a python SDK for developing flyte workflows and task and can be used generally, whenever stateful
computation is desirable. ``flytekit``-developed workflows and tasks are completely runnable locally, unless they need
some advanced backend functionality like starting a distributed spark cluster.
In this section we'll take a look at how to write flyte tasks, compose them together to form a workflow,
and then read, manipulate and cache data.
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_hello_world_thumb.png
:alt: Hello World
:ref:`sphx_glr_auto_core_flyte_basics_hello_world.py`
.. raw:: html
Hello World
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_task_thumb.png
:alt: Tasks
:ref:`sphx_glr_auto_core_flyte_basics_task.py`
.. raw:: html
Tasks
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_basic_workflow_thumb.png
:alt: Workflows
:ref:`sphx_glr_auto_core_flyte_basics_basic_workflow.py`
.. raw:: html
Workflows
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_imperative_wf_style_thumb.png
:alt: Imperative Workflows
:ref:`sphx_glr_auto_core_flyte_basics_imperative_wf_style.py`
.. raw:: html
Imperative Workflows
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_documented_workflow_thumb.png
:alt: Add Docstrings to Workflows
:ref:`sphx_glr_auto_core_flyte_basics_documented_workflow.py`
.. raw:: html
Add Docstrings to Workflows
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_lp_thumb.png
:alt: Launch Plans
:ref:`sphx_glr_auto_core_flyte_basics_lp.py`
.. raw:: html
Launch Plans
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_deck_thumb.png
:alt: Flyte Decks
:ref:`sphx_glr_auto_core_flyte_basics_deck.py`
.. raw:: html
Flyte Decks
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_task_cache_thumb.png
:alt: Caching
:ref:`sphx_glr_auto_core_flyte_basics_task_cache.py`
.. raw:: html
Caching
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_shell_task_thumb.png
:alt: Run Bash Scripts Using ShellTask
:ref:`sphx_glr_auto_core_flyte_basics_shell_task.py`
.. raw:: html
Run Bash Scripts Using ShellTask
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_reference_task_thumb.png
:alt: Reference Task
:ref:`sphx_glr_auto_core_flyte_basics_reference_task.py`
.. raw:: html
Reference Task
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_files_thumb.png
:alt: Working With Files
:ref:`sphx_glr_auto_core_flyte_basics_files.py`
.. raw:: html
Working With Files
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_folders_thumb.png
:alt: Working With Folders
:ref:`sphx_glr_auto_core_flyte_basics_folders.py`
.. raw:: html
Working With Folders
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_named_outputs_thumb.png
:alt: Named Outputs
:ref:`sphx_glr_auto_core_flyte_basics_named_outputs.py`
.. raw:: html
Named Outputs
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_decorating_tasks_thumb.png
:alt: Decorating Tasks
:ref:`sphx_glr_auto_core_flyte_basics_decorating_tasks.py`
.. raw:: html
Decorating Tasks
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_decorating_workflows_thumb.png
:alt: Decorating Workflows
:ref:`sphx_glr_auto_core_flyte_basics_decorating_workflows.py`
.. raw:: html
Decorating Workflows
.. raw:: html
.. only:: html
.. image:: /auto/core/flyte_basics/images/thumb/sphx_glr_task_cache_serialize_thumb.png
:alt: Cache Serializing
:ref:`sphx_glr_auto_core_flyte_basics_task_cache_serialize.py`
.. raw:: html
Cache Serializing
.. raw:: html
.. toctree::
:hidden:
/auto/core/flyte_basics/hello_world
/auto/core/flyte_basics/task
/auto/core/flyte_basics/basic_workflow
/auto/core/flyte_basics/imperative_wf_style
/auto/core/flyte_basics/documented_workflow
/auto/core/flyte_basics/lp
/auto/core/flyte_basics/deck
/auto/core/flyte_basics/task_cache
/auto/core/flyte_basics/shell_task
/auto/core/flyte_basics/reference_task
/auto/core/flyte_basics/files
/auto/core/flyte_basics/folders
/auto/core/flyte_basics/named_outputs
/auto/core/flyte_basics/decorating_tasks
/auto/core/flyte_basics/decorating_workflows
/auto/core/flyte_basics/task_cache_serialize
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: flyte_basics_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: flyte_basics_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery