Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d6t/d6tflow
/ functions
Functions
422 in github.com/d6t/d6tflow
⨍
Functions
422
◇
Types & classes
177
↳
Endpoints
4
↓ 117 callers
Method
save
Persist data to target Args: data (dict): data to save. keys are the self.persist keys and values is data
d6tflow/tasks/__init__.py:243
↓ 70 callers
Method
outputLoad
Load output from task with the workflow parameters Args: task (class): task class keys (list): list of data
d6tflow/__init__.py:436
↓ 55 callers
Method
inputLoad
Load all or several outputs from task Args: keys (list): list of data to load task (str): if requires multip
d6tflow/tasks/__init__.py:139
↓ 52 callers
Method
load
(self, cached=False, **kwargs)
d6tflow/targets/tf.py:7
↓ 39 callers
Method
complete
``True`` if all of this task's outputs exist.
d6tflow/core.py:289
↓ 33 callers
Method
reset
(self, task=None, confirm=False)
d6tflow/__init__.py:503
↓ 31 callers
Method
input
The outputs of the tasks returned by :py:meth:`requires`.
d6tflow/core.py:309
↓ 31 callers
Method
output
The output Target(s) this task produces. Default: none.
d6tflow/core.py:301
↓ 29 callers
Method
run
(self)
tests/test_main.py:78
↓ 24 callers
Method
run
Run tasks with the workflow parameters. Runs the DAG sequentially in dependency order. Args: tasks (class, list): task c
d6tflow/__init__.py:401
↓ 21 callers
Method
get_task
Get task with the workflow parameters Args: task(class) Retuns: An instance of task class with the workflow par
d6tflow/__init__.py:535
↓ 20 callers
Method
preview
Preview task flows with the workflow parameters Args: tasks (class, list): task class or list of tasks class
d6tflow/__init__.py:389
↓ 14 callers
Method
get_task
Get task with the workflow parameters for a flow Args: flow (string): The name of the experiment for which the flow is t
d6tflow/__init__.py:783
↓ 13 callers
Method
outputPath
Ouputs the Path given a task Args: task (class): task class Returns: list or dict of all task paths
d6tflow/__init__.py:450
↓ 13 callers
Method
run
(self)
tests/test_workflow.py:11
↓ 11 callers
Method
run
Run tasks with the workflow parameters for a flow. Runs the DAG sequentially in dependency order. Args: flow (string): T
d6tflow/__init__.py:598
↓ 9 callers
Method
get_params
Return all ``(name, Parameter)`` pairs for this task, in declaration order.
d6tflow/core.py:150
↓ 9 callers
Method
requires
The Task(s) this task depends on. Default: none.
d6tflow/core.py:305
↓ 8 callers
Method
_getpath
(self, k, subdir=True)
d6tflow/tasks/__init__.py:98
↓ 8 callers
Method
exists
(self)
d6tflow/core.py:325
↓ 8 callers
Function
flatten
Create a flat list of all items in a structured object (dicts, lists, items):: >>> sorted(flatten({'a': 'foo', 'b': 'bar'})) ['b
d6tflow/core.py:32
↓ 8 callers
Method
invalidate
Reset a task, eg by deleting output file
d6tflow/tasks/__init__.py:56
↓ 8 callers
Method
load
Runs a function to load data from storage into memory Args: fun (function): loading function cached (bool):
d6tflow/targets/__init__.py:92
↓ 8 callers
Method
metaSave
(self, data)
d6tflow/tasks/__init__.py:320
↓ 8 callers
Method
outputLoadAll
Load all output from task with the workflow parameters Args: task (class): task class keys (list): list of d
d6tflow/__init__.py:484
↓ 7 callers
Method
exists
(self)
d6tflow/targets/__init__.py:26
↓ 7 callers
Method
generate
Generate output files
d6tflow/__init__.py:863
↓ 7 callers
Method
output
Output target(s) this task produces
d6tflow/tasks/__init__.py:128
↓ 7 callers
Method
outputLoadMeta
(self, task=None)
d6tflow/__init__.py:478
↓ 7 callers
Method
reset
(self, task=None, flow=None, confirm=False)
d6tflow/__init__.py:724
↓ 6 callers
Method
_load_meta_from_task
Load metadata from a single task
d6tflow/tasks/__init__.py:294
↓ 6 callers
Method
clone
Create a new task instance from this one, overriding some args. Parameters common to this task and ``cls`` are carried over; ``kwarg
d6tflow/core.py:257
↓ 6 callers
Method
complete
Check if a task is complete by checking if output exists, eg if output file exists
d6tflow/tasks/__init__.py:87
↓ 6 callers
Method
readfile
(self, file_dir)
tests/test_workflow.py:264
↓ 5 callers
Method
_make_path_cloud_compatible
Convert path to cloud-compatible path if cloud storage is enabled
d6tflow/tasks/__init__.py:272
↓ 5 callers
Method
complete
(self, task=None, cascade=True)
d6tflow/__init__.py:472
↓ 5 callers
Method
outputLoad
Load output from task with the workflow parameters for a flow Args: flow (string): The name of the experiment for which
d6tflow/__init__.py:630
↓ 5 callers
Method
outputPath
Ouputs the Path given a task Args: task (class): task class flow (string): The name of the experiment for wh
d6tflow/__init__.py:650
↓ 5 callers
Method
run
The task computation, to be overridden in a subclass.
d6tflow/core.py:317
↓ 5 callers
Method
run
(self)
docs/example.py:8
↓ 4 callers
Method
_get_meta_path
(self, task)
d6tflow/tasks/__init__.py:369
↓ 4 callers
Method
metaLoad
(self, key=None)
d6tflow/tasks/__init__.py:329
↓ 4 callers
Method
output
(self, task=None)
d6tflow/__init__.py:475
↓ 4 callers
Method
output
(self)
d6tflow/tasks/__init__.py:439
↓ 4 callers
Method
reset_upstream
(self, task, confirm=False)
d6tflow/__init__.py:522
↓ 4 callers
Method
save
Runs a function to save data from memory into storage Args: df (obj): data to save fun (function): saving fu
d6tflow/targets/__init__.py:116
↓ 4 callers
Method
saveMeta
(self, data)
d6tflow/tasks/__init__.py:323
↓ 4 callers
Function
taskflow_upstream
Get all upstream inputs for a task Args: task (obj): task
d6tflow/__init__.py:165
↓ 3 callers
Method
_confirm_reset
Helper method to handle confirmation logic for reset operations Args: confirm (bool): whether to ask for confirm
d6tflow/__init__.py:705
↓ 3 callers
Method
dfhelper
(self, obj, df_, file)
tests/test_main.py:49
↓ 3 callers
Method
get_task_family
The task family (class name) for this class.
d6tflow/core.py:239
↓ 3 callers
Method
normalize
Normalize a parsed/default/constructor value. Identity by default.
d6tflow/parameter.py:90
↓ 3 callers
Method
serialize
Convert the value ``x`` to a string. Opposite of :py:meth:`parse`.
d6tflow/parameter.py:86
↓ 2 callers
Method
__init__
(self, *args, **kwargs)
d6tflow/core.py:210
↓ 2 callers
Method
__init__
(self, task=None, params=None, path=None, env=None)
d6tflow/__init__.py:366
↓ 2 callers
Method
__init__
:param default: the default value for this parameter. If not given, a value must be specified when the task is instan
d6tflow/parameter.py:55
↓ 2 callers
Method
_attach_to_tasks
(self, tasks, flows=None, path=None)
d6tflow/__init__.py:559
↓ 2 callers
Method
_input_load_meta_internal
Internal method to load metadata from input tasks
d6tflow/tasks/__init__.py:307
↓ 2 callers
Method
_instantiate
(self, funcs_to_run: list, params=None)
d6tflow/functional.py:192
↓ 2 callers
Function
_process
(task)
d6tflow/core.py:475
↓ 2 callers
Function
_rmtree_robust
Remove a directory tree, tolerating Windows read-only/locked files. On Windows (esp. OneDrive-synced dirs) shutil.rmtree can raise Permission
tests/test_main.py:10
↓ 2 callers
Method
_save_meta_internal
Internal method to save metadata in specified format
d6tflow/tasks/__init__.py:279
↓ 2 callers
Method
add_global_params
Adds params to flow functions. More like declares the params for further use. Parameters ----------
d6tflow/functional.py:208
↓ 2 callers
Method
clone_parent
(_self, **kwargs)
d6tflow/core.py:374
↓ 2 callers
Method
delete
Possibly dangerous! `delete(func)` will delete *all files* in the `data/func` directory of the given func. Useful if you want to delete all fu
d6tflow/functional.py:307
↓ 2 callers
Method
exists
(self)
d6tflow/targets/__init__.py:77
↓ 2 callers
Method
get_param_names
Return parameter names. ``include_significant=True`` returns all params.
d6tflow/core.py:163
↓ 2 callers
Method
get_param_values
Resolve parameter values from positional args, kwargs and defaults. :param params: list of ``(param_name, Parameter)`` :para
d6tflow/core.py:168
↓ 2 callers
Function
getpaths
Map all Tasks in a structured object to their ``.output()``.
d6tflow/core.py:65
↓ 2 callers
Function
invalidate_upstream
Invalidate all tasks upstream tasks in a flow. For example, you have 3 dependant tasks. Normally you run Task3 but you've changed parameters
d6tflow/__init__.py:229
↓ 2 callers
Method
outputLoad
Loads all or several outputs from flow step. Args: func_to_run: flow step function keys (lis
d6tflow/functional.py:225
↓ 2 callers
Method
outputLoadAll
Load all output from task with the workflow parameters for a flow Args: flow (string): The name of the experiment for wh
d6tflow/__init__.py:685
↓ 2 callers
Method
outputLoadMetaJson
(self, task=None)
d6tflow/__init__.py:481
↓ 2 callers
Function
preview
Preview task flows Args: tasks (obj, list): task or list of tasks
d6tflow/__init__.py:72
↓ 2 callers
Method
preview
Preview task flows with the workflow parameters for a flow Args: flow (string): The name of the experiment for which the
d6tflow/__init__.py:754
↓ 2 callers
Method
run
(self)
tests/test_main.py:497
↓ 2 callers
Method
set_default
Set default task for the workflow object Args: task(obj) The task to be set as a default task
d6tflow/__init__.py:526
↓ 2 callers
Method
to_str_params
Convert parameters to a ``{name: serialized_value}`` dict. :param bool only_significant: only include parameters marked significant.
d6tflow/core.py:243
↓ 1 callers
Method
__init__
(self, path=None)
d6tflow/targets/__init__.py:21
↓ 1 callers
Function
_drive_generator
(gen)
d6tflow/core.py:531
↓ 1 callers
Function
_get_task_requires
(task)
d6tflow/core.py:417
↓ 1 callers
Method
_get_tasks
(self)
d6tflow/__init__.py:936
↓ 1 callers
Method
_invalidate_meta
(self)
d6tflow/tasks/__init__.py:75
↓ 1 callers
Method
_module_from_file
(self, module_name, file_path)
d6tflow/__init__.py:944
↓ 1 callers
Method
_update_params_used
(self, funcs, params)
d6tflow/functional.py:201
↓ 1 callers
Method
attach_flow
(self, flow=None, flow_name="flow")
d6tflow/__init__.py:552
↓ 1 callers
Method
clone_parents
(_self, **kwargs)
d6tflow/core.py:378
↓ 1 callers
Method
clone_parents_dict
(_self, **kwargs)
d6tflow/__init__.py:317
↓ 1 callers
Method
deleteAll
Possibly dangerous! Will delete all files in the `data/` directory of the functions attached to the workflow object. Useful if you want to del
d6tflow/functional.py:320
↓ 1 callers
Method
df2fun
(task)
tests/test_main.py:81
↓ 1 callers
Function
dfs_paths
Yield tasks on every dependency path from ``start_task`` to ``goal_task_family``.
d6tflow/core.py:421
↓ 1 callers
Function
enable_cloud_storage
Initialize cloud storage Uses https://github.com/orgs/fsspec/repositories Args: protocol (str): fsspec eg gcs, s3, dropbox etc.
d6tflow/__init__.py:37
↓ 1 callers
Method
has_task_value
Whether a default value is available.
d6tflow/parameter.py:72
↓ 1 callers
Method
invalidate
(self, confirm=True)
d6tflow/tasks/__init__.py:525
↓ 1 callers
Function
invalidate_downstream
Invalidate all downstream tasks in a flow. For example, you have 3 dependant tasks. Normally you run Task3 but you've changed parameters for
d6tflow/__init__.py:257
↓ 1 callers
Method
outputLoad
Load all or several outputs from task Args: keys (list): list of data to load as_dict (bool): cache data in
d6tflow/tasks/__init__.py:196
↓ 1 callers
Method
outputLoadAllMeta
(self)
d6tflow/tasks/__init__.py:355
↓ 1 callers
Method
outputLoadMeta
(self)
d6tflow/tasks/__init__.py:335
↓ 1 callers
Method
parse
Parse a ``bool`` from the string, matching 'true'/'false' case-insensitively.
d6tflow/parameter.py:119
↓ 1 callers
Method
requires
(_self)
d6tflow/__init__.py:339
next →
1–100 of 422, ranked by callers