Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/burr
/ functions
Functions
2,698 in github.com/apache/burr
⨍
Functions
2,698
◇
Types & classes
381
↳
Endpoints
75
↓ 228 callers
Method
get
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 callers
Method
append
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 callers
Method
build
Builds/finalizes the graph. :return: The graph object
burr/core/graph.py:368
↓ 145 callers
Method
update
(self, result: dict, state: State)
examples/ml-training/application.py:120
↓ 134 callers
Method
with_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 callers
Method
with_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 callers
Method
with_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 callers
Method
append
(self, result)
examples/pytest/conftest.py:29
↓ 92 callers
Method
keys
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 callers
Method
get_all
Returns the entire state, realize as a dictionary. This is a copy.
burr/core/state.py:321
↓ 81 callers
Method
with_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 callers
Method
with_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 callers
Method
with_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 callers
Method
bind
(self, **kwargs: Any)
burr/core/action.py:1404
↓ 57 callers
Method
expr
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 callers
Method
with_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 callers
Method
update
(self, result: dict, state: State)
tests/core/test_action.py:86
↓ 48 callers
Method
run
(self, state: State)
tests/core/test_action.py:79
↓ 47 callers
Method
create
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 callers
Method
run
Select the best model based on the validation metrics.
examples/ml-training/application.py:111
↓ 41 callers
Method
visualize
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 callers
Method
initialize_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 callers
Method
save
( self, partition_key: Optional[str], app_id: str, sequence_id
tests/core/test_application.py:3921
↓ 35 callers
Method
serialize
Converts the state to a JSON serializable object
burr/core/state.py:325
↓ 33 callers
Method
initialize
Initializes the app for saving, set up any databases, etc.. you want to here.
burr/core/persistence.py:117
↓ 32 callers
Method
close
This is deprecated, please use .cleanup()
burr/integrations/persisters/b_aiosqlite.py:320
↓ 31 callers
Method
load
( self, partition_key: str, app_id: Optional[str], sequence_id
tests/core/test_application.py:3933
↓ 30 callers
Method
step
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 callers
Function
Field
({ className, ...props }: HeadlessFieldProps)
telemetry/ui/src/components/common/fieldset.tsx:65
↓ 28 callers
Method
from_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 callers
Method
log_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 callers
Method
subset
Returns a subset of the state, with only the given keys
burr/core/state.py:440
↓ 26 callers
Method
update
(self, result: dict, state: State)
tests/core/test_application.py:680
↓ 26 callers
Method
when
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 callers
Method
deserialize
Converts a dictionary representing a JSON object back into a state
burr/core/state.py:344
↓ 24 callers
Method
get_next_action
(self)
burr/core/application.py:2030
↓ 24 callers
Method
update
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 callers
Method
run
(self, state: State, **run_kwargs)
burr/core/action.py:702
↓ 22 callers
Method
with_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 callers
Function
_fail
Print error message and exit.
scripts/apache_release.py:64
↓ 20 callers
Method
arun
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 callers
Method
with_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 callers
Function
create_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 callers
Method
values
(self)
examples/pytest/conftest.py:32
↓ 17 callers
Function
_log
(msg: str)
scripts/ci_smoke_server.py:57
↓ 17 callers
Method
call_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 callers
Function
cn
(...inputs: ClassValue[])
website/src/lib/utils.ts:23
↓ 17 callers
Method
is_initialized
(self)
tests/core/test_application.py:3903
↓ 17 callers
Method
wipe
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 callers
Method
with_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 callers
Method
then
( onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) =
telemetry/ui/src/api/core/CancelablePromise.ts:110
↓ 16 callers
Method
update
(self, result: dict, state: State)
tests/core/test_parallelism.py:108
↓ 15 callers
Method
extend
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 callers
Function
from_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 callers
Method
list_app_ids
(self)
tests/core/test_application.py:3918
↓ 14 callers
Method
cleanup
Closes the connection to the database.
burr/core/persistence.py:589
↓ 13 callers
Method
call_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 callers
Method
astream_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 callers
Function
classNames
(...classes: string[])
telemetry/ui/src/utils/tailwind.ts:20
↓ 12 callers
Function
is_subset
(dict_subset, dict_full)
tests/visibility/test_tracing.py:38
↓ 12 callers
Method
run_and_update
(self, state: State, **run_kwargs)
tests/core/test_application.py:580
↓ 12 callers
Function
update_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 callers
Method
stream_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 callers
Method
astep
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 callers
Method
copy
(self)
burr/common/types.py:43
↓ 10 callers
Function
fn
(state)
tests/core/test_action.py:945
↓ 10 callers
Method
is_async
(self)
tests/core/test_parallelism.py:549
↓ 10 callers
Method
run
(self, state: State, **run_kwargs)
tests/tracking/test_common_models.py:30
↓ 10 callers
Method
save
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 callers
Function
serialize
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 callers
Function
_command
Runs a simple command
burr/cli/__main__.py:53
↓ 9 callers
Function
_group_events_by_app_id
( events: List[RecursiveActionTracked], )
tests/core/test_parallelism.py:379
↓ 9 callers
Function
_print_step
Print a formatted step header.
scripts/apache_release.py:77
↓ 9 callers
Function
_validate_reducer_writes
(reducer: Reducer, state: State, name: str)
burr/core/application.py:233
↓ 9 callers
Function
_validate_result
(result: Any, name: str, schema: ActionSchema = DEFAULT_SCHEMA)
burr/core/application.py:92
↓ 9 callers
Function
derive_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 callers
Method
fn
(self)
burr/core/action.py:843
↓ 9 callers
Function
model_to_dict
Utility function to convert a pydantic model to a dictionary.
burr/integrations/pydantic.py:52
↓ 9 callers
Method
run_and_update
(self, state: State, **run_kwargs)
burr/integrations/bedrock.py:278
↓ 8 callers
Method
_append_write_line
(self, model: pydantic.BaseModel)
burr/tracking/client.py:443
↓ 8 callers
Function
_arun_single_step_action
Runs a single step action in async. See the synchronous version for more details.
burr/core/application.py:580
↓ 8 callers
Function
_fail
Print error message and exit.
scripts/verify_apache_artifacts.py:58
↓ 8 callers
Method
_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 callers
Function
_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 callers
Method
_validate_halt_conditions
Utility function to validate halt conditions
burr/core/application.py:1189
↓ 8 callers
Method
abuild
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 callers
Function
add_namespace_to_partition_key
Helper function to add namespace to partition key.
burr/integrations/persisters/b_redis.py:37
↓ 8 callers
Function
build_application
(sqllite_persister, tracker, partition_key, app_id)
tests/integration_tests/test_app.py:56
↓ 8 callers
Function
deserialize
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 callers
Method
is_async
(self)
burr/core/application.py:2869
↓ 8 callers
Method
load
( self, partition_key: str, app_id: Optional[str], sequence_id: Optional[int] = None, **kwargs )
burr/tracking/client.py:614
↓ 8 callers
Method
reduce
(self, state: State, results: Generator[State, None, None])
tests/test_end_to_end.py:175
↓ 8 callers
Function
require_plugin
(import_error: ImportError, plugin_name: str)
burr/integrations/base.py:19
↓ 8 callers
Method
run
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 callers
Method
send_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 callers
Method
submit_log_event
(self, event: EventType, app_id: str, partition_key: str)
burr/tracking/s3client.py:270
↓ 8 callers
Method
update
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 callers
Method
validate_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 callers
Method
with_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 callers
Function
_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