MCPcopy Create free account

hub / github.com/apache/burr / functions

Functions2,698 in github.com/apache/burr

↓ 228 callersMethodget
Provides the context-local application context. You can use this instead of declaring `__context` in an application. You really should
burr/core/application.py:643
↓ 149 callersMethodappend
Appends to the state with a set of key-value pairs. Each one must correspond to a list-like object, or an error will be raised. This
burr/core/state.py:370
↓ 149 callersMethodbuild
Builds/finalizes the graph. :return: The graph object
burr/core/graph.py:368
↓ 145 callersMethodupdate
(self, result: dict, state: State)
examples/ml-training/application.py:120
↓ 134 callersMethodwith_name
Returns a copy of the given action with the given name. Why do we need this? We instantiate actions without names, and then set them later. Th
burr/core/action.py:317
↓ 126 callersMethodwith_transitions
Adds transitions to the graph. Transitions are specified as tuples of either: 1. (from, to, condition) 2. (from, to) -- condi
burr/core/graph.py:316
↓ 124 callersMethodwith_actions
Adds an action to the application. The actions are granted names (using the with_name) method post-adding, using the kw argument. If it alread
burr/core/graph.py:288
↓ 101 callersMethodappend
(self, result)
examples/pytest/conftest.py:29
↓ 92 callersMethodkeys
Returns a list of the state keys only (without values for cleaner display). Returns: list: A list of state keys
burr/core/state.py:463
↓ 88 callersMethodget_all
Returns the entire state, realize as a dictionary. This is a copy.
burr/core/state.py:321
↓ 81 callersMethodwith_entrypoint
Adds an entrypoint to the application. This is the action that will be run first. This can only be called once. :param action: The na
burr/core/application.py:2352
↓ 75 callersMethodwith_tracker
Adds a "tracker" to the application. The tracker specifies a project name (used for disambiguating groups of tracers), and plugs into the
burr/core/application.py:2418
↓ 62 callersMethodwith_identifiers
Assigns various identifiers to the application. This is used for tracking, persistence, etc... :param app_id: Application ID -- this will be
burr/core/application.py:2222
↓ 60 callersMethodbind
(self, **kwargs: Any)
burr/core/action.py:1404
↓ 57 callersMethodexpr
Returns a condition that evaluates the given expression. Expression must use only state variables and Python operators. Do not trust that anyt
burr/core/action.py:416
↓ 56 callersMethodwith_state
Sets initial values in the state. If you want to load from a prior state, you can do so here and pass the values in. TODO -- enable p
burr/core/application.py:2254
↓ 53 callersMethodupdate
(self, result: dict, state: State)
tests/core/test_action.py:86
↓ 48 callersMethodrun
(self, state: State)
tests/core/test_action.py:79
↓ 47 callersMethodcreate
Creates a RunnableGraph from a callable/action. This will create a single-node runnable graph, so we can wrap it up in a task. :param
burr/core/parallelism.py:65
↓ 44 callersMethodrun
Select the best model based on the validation metrics.
examples/ml-training/application.py:111
↓ 41 callersMethodvisualize
Visualizes the graph using graphviz. This will render the graph. :param output_file_path: The path to save this to, None if you don't want to
burr/core/graph.py:182
↓ 40 callersMethodinitialize_from
Initializes the application we will build from some prior state object. Note (1) that you can *either* call this or use `with_state` and `wit
burr/core/application.py:2468
↓ 40 callersMethodsave
( self, partition_key: Optional[str], app_id: str, sequence_id
tests/core/test_application.py:3921
↓ 35 callersMethodserialize
Converts the state to a JSON serializable object
burr/core/state.py:325
↓ 33 callersMethodinitialize
Initializes the app for saving, set up any databases, etc.. you want to here.
burr/core/persistence.py:117
↓ 32 callersMethodclose
This is deprecated, please use .cleanup()
burr/integrations/persisters/b_aiosqlite.py:320
↓ 31 callersMethodload
( self, partition_key: str, app_id: Optional[str], sequence_id
tests/core/test_application.py:3933
↓ 30 callersMethodstep
Performs a single step, advancing the state machine along. This returns a tuple of the action that was run, the result of running the
burr/core/application.py:912
↓ 29 callersFunctionField
({ className, ...props }: HeadlessFieldProps)
telemetry/ui/src/components/common/fieldset.tsx:65
↓ 28 callersMethodfrom_values
Creates a new instance of the SQLitePersister from passed in values. :param db_path: the path the DB will be stored. :param table_nam
burr/core/persistence.py:328
↓ 26 callersMethodlog_attributes
Logs a set of attributes to the UI. Note that this must be paired with a tracker or a tracking hook to be useful, otherwise it will be
burr/visibility/tracing.py:245
↓ 26 callersMethodsubset
Returns a subset of the state, with only the given keys
burr/core/state.py:440
↓ 26 callersMethodupdate
(self, result: dict, state: State)
tests/core/test_application.py:680
↓ 26 callersMethodwhen
Returns a condition that checks state values using optional operators. You can also refer to this as ``from burr.core import when`` in the AP
burr/core/action.py:529
↓ 25 callersMethoddeserialize
Converts a dictionary representing a JSON object back into a state
burr/core/state.py:344
↓ 24 callersMethodget_next_action
(self)
burr/core/application.py:2030
↓ 24 callersMethodupdate
Updates the state with a set of key-value pairs Does an upsert operation (if the keys exist their value will be overwritten, otherwise
burr/core/state.py:355
↓ 22 callersMethodrun
(self, state: State, **run_kwargs)
burr/core/action.py:702
↓ 22 callersMethodwith_graph
Adds an existing graph to the builder. Note that if you have any name clashes this will error out. This would happen if you add actions with t
burr/core/graph.py:349
↓ 21 callersFunction_fail
Print error message and exit.
scripts/apache_release.py:64
↓ 20 callersMethodarun
Runs your application through until completion, using async. Does not give access to the state along the way -- if you want that, use iterate(
burr/core/application.py:1360
↓ 19 callersMethodwith_state_persister
Adds a state persister to the application. This is a way to persist state out to a database, file, etc... at the specified interval. This is o
burr/core/application.py:2517
↓ 18 callersFunctioncreate_action
Factory function to create an action. This is meant to be called by the ApplicationBuilder, and not by the user. The internal API may change.
burr/core/action.py:1599
↓ 18 callersMethodvalues
(self)
examples/pytest/conftest.py:32
↓ 17 callersFunction_log
(msg: str)
scripts/ci_smoke_server.py:57
↓ 17 callersMethodcall_all_lifecycle_hooks_sync
Calls all the lifecycle hooks in this group, by hook name (stage) :param hook_name: Name of the hooks to call :param kwargs: Keyword
burr/lifecycle/internal.py:174
↓ 17 callersFunctioncn
(...inputs: ClassValue[])
website/src/lib/utils.ts:23
↓ 17 callersMethodis_initialized
(self)
tests/core/test_application.py:3903
↓ 17 callersMethodwipe
Wipes the state, either by deleting the keys in delete and keeping everything else or keeping the keys in keep. and deleting everything else.
burr/core/state.py:415
↓ 17 callersMethodwith_hooks
Adds a lifecycle adapter to the application. This is a way to add hooks to the application so that they are run at the appropriate times. You
burr/core/application.py:2408
↓ 16 callersMethodthen
( onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) =
telemetry/ui/src/api/core/CancelablePromise.ts:110
↓ 16 callersMethodupdate
(self, result: dict, state: State)
tests/core/test_parallelism.py:108
↓ 15 callersMethodextend
Extends the state with a set of key-value pairs. Each one must correspond to a list-like object, or an error will be raised. This is
burr/core/state.py:388
↓ 15 callersFunctionfrom_state
Indicates that an input should come from state. Specify "missing" to allow for missing keys to be dropped or raise an error. :param key: Key
burr/integrations/hamilton.py:53
↓ 15 callersMethodlist_app_ids
(self)
tests/core/test_application.py:3918
↓ 14 callersMethodcleanup
Closes the connection to the database.
burr/core/persistence.py:589
↓ 13 callersMethodcall_all_lifecycle_hooks_sync_and_async
Calls all the lifecycle hooks in this group, by hook name (stage). :param hook_name: Name of the hook
burr/lifecycle/internal.py:200
↓ 12 callersMethodastream_result
Streams a result out in an asynchronous manner. :param halt_after: The list of actions/tags to halt after execution of. It will halt on the f
burr/core/application.py:1641
↓ 12 callersFunctionclassNames
(...classes: string[])
telemetry/ui/src/utils/tailwind.ts:20
↓ 12 callersFunctionis_subset
(dict_subset, dict_full)
tests/visibility/test_tracing.py:38
↓ 12 callersMethodrun_and_update
(self, state: State, **run_kwargs)
tests/core/test_application.py:580
↓ 12 callersFunctionupdate_state
At the update step of a Hamilton Action, call state.update to the key field of state. Used with outputs= parameter of Hamilton(...) :param ke
burr/integrations/hamilton.py:83
↓ 11 callersMethodstream_result
Streams a result out. :param halt_after: The list of actions/tags to halt after execution of. It will halt on the first one. :param h
burr/core/application.py:1390
↓ 10 callersMethodastep
Asynchronous version of step. :param inputs: Inputs to the action -- this is if this action requires an input that is passed in f
burr/core/application.py:1071
↓ 10 callersMethodcopy
(self)
burr/common/types.py:43
↓ 10 callersFunctionfn
(state)
tests/core/test_action.py:945
↓ 10 callersMethodis_async
(self)
tests/core/test_parallelism.py:549
↓ 10 callersMethodrun
(self, state: State, **run_kwargs)
tests/tracking/test_common_models.py:30
↓ 10 callersMethodsave
Saves the state for a given app_id, sequence_id, position (PK, App_id, sequence_id, position) are a unique identifier for the state. Why not
burr/core/persistence.py:126
↓ 10 callersFunctionserialize
This is the default implementation for serializing a value. All other implementations should be registered with the `@serialize.register` decorat
burr/core/serde.py:88
↓ 9 callersFunction_command
Runs a simple command
burr/cli/__main__.py:53
↓ 9 callersFunction_group_events_by_app_id
( events: List[RecursiveActionTracked], )
tests/core/test_parallelism.py:379
↓ 9 callersFunction_print_step
Print a formatted step header.
scripts/apache_release.py:77
↓ 9 callersFunction_validate_reducer_writes
(reducer: Reducer, state: State, name: str)
burr/core/application.py:233
↓ 9 callersFunction_validate_result
(result: Any, name: str, schema: ActionSchema = DEFAULT_SCHEMA)
burr/core/application.py:92
↓ 9 callersFunctionderive_inputs_from_fn
Derives inputs from the function, given the bound parameters. This assumes that the function has inputs named `state`, as well as any number of ot
burr/core/action.py:776
↓ 9 callersMethodfn
(self)
burr/core/action.py:843
↓ 9 callersFunctionmodel_to_dict
Utility function to convert a pydantic model to a dictionary.
burr/integrations/pydantic.py:52
↓ 9 callersMethodrun_and_update
(self, state: State, **run_kwargs)
burr/integrations/bedrock.py:278
↓ 8 callersMethod_append_write_line
(self, model: pydantic.BaseModel)
burr/tracking/client.py:443
↓ 8 callersFunction_arun_single_step_action
Runs a single step action in async. See the synchronous version for more details.
burr/core/application.py:580
↓ 8 callersFunction_fail
Print error message and exit.
scripts/verify_apache_artifacts.py:58
↓ 8 callersMethod_process_control_flow_params
Utility function to clean out iterate params so we have less duplication between iterate/aiterate and the logic is cleaner later.
burr/core/application.py:1163
↓ 8 callersFunction_run_single_step_action
Runs a single step action. This API is internal-facing and a bit in flux, but it corresponds to the SingleStepAction class. :param action: Ac
burr/core/application.py:301
↓ 8 callersMethod_validate_halt_conditions
Utility function to validate halt conditions
burr/core/application.py:1189
↓ 8 callersMethodabuild
Builds the application for asynchronous runs. We support both synchronous and asynchronous applications. To save/load in an asynchronous
burr/core/application.py:2822
↓ 8 callersFunctionadd_namespace_to_partition_key
Helper function to add namespace to partition key.
burr/integrations/persisters/b_redis.py:37
↓ 8 callersFunctionbuild_application
(sqllite_persister, tracker, partition_key, app_id)
tests/integration_tests/test_app.py:56
↓ 8 callersFunctiondeserialize
Main function to deserialize a value. Looks for a key in the value if it's a dictionary and calls the appropriate deserializer function.
burr/core/serde.py:70
↓ 8 callersMethodis_async
(self)
burr/core/application.py:2869
↓ 8 callersMethodload
( self, partition_key: str, app_id: Optional[str], sequence_id: Optional[int] = None, **kwargs )
burr/tracking/client.py:614
↓ 8 callersMethodreduce
(self, state: State, results: Generator[State, None, None])
tests/test_end_to_end.py:175
↓ 8 callersFunctionrequire_plugin
(import_error: ImportError, plugin_name: str)
burr/integrations/base.py:19
↓ 8 callersMethodrun
Runs your application through until completion. Does not give access to the state along the way -- if you want that, use iterate(). N
burr/core/application.py:1332
↓ 8 callersMethodsend_error_response
Send error response to client. Args: status_code: HTTP error status code message: Error message string to include in
examples/deployment/vercel/api/counter.py:117
↓ 8 callersMethodsubmit_log_event
(self, event: EventType, app_id: str, partition_key: str)
burr/tracking/s3client.py:270
↓ 8 callersMethodupdate
Updates the state with the results of the hamilton action, as specified in the outputs. :param result: The results of the hamilton DAG
burr/integrations/hamilton.py:197
↓ 8 callersMethodvalidate_inputs
Validates the inputs to the function. This is a convenience method to allow for validation of inputs before running the function. :pa
burr/core/action.py:232
↓ 8 callersMethodwith_typing
Sets the typing system for the application. This is used to enforce typing on the state. :param typing_system: Typing system to use :
burr/core/application.py:2242
↓ 7 callersFunction_arun_single_step_streaming_action
Runs a single step streaming action in async. See the synchronous version for more details.
burr/core/application.py:390
next →1–100 of 2,698, ranked by callers