Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blanche-official/blanche
/ functions
Functions
564 in github.com/blanche-official/blanche
⨍
Functions
564
◇
Types & classes
103
↳
Endpoints
7
↓ 2 callers
Function
find_node_path_by_predicate
(node: A11yNode, matching_ft: MatchingFt)
blanche/pipe/preprocessing/a11y/traversal.py:10
↓ 2 callers
Function
find_node_path_by_role_and_name
(node: A11yNode, role: str, name: str)
blanche/pipe/preprocessing/a11y/traversal.py:21
↓ 2 callers
Function
fold_link_button
(node: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:164
↓ 2 callers
Method
format
(node: BlancheNode, indent_level: int = 0, include_ids: bool = True, include_images: bool = False)
blanche/browser/context.py:22
↓ 2 callers
Method
forward_async
(self, context: Context, scrape_images: bool = True)
blanche/pipe/data_scraping.py:240
↓ 2 callers
Method
from_a11y_node
(node: A11yNode, path: str = "")
blanche/browser/node_type.py:560
↓ 2 callers
Method
from_a11y_tree
(tree: A11yTree)
blanche/pipe/preprocessing/a11y/tree.py:41
↓ 2 callers
Function
get_locator_for_node_id
( page: Page, tree: A11yNode, node_id: str, conflict_resolution: bool = True )
blanche/pipe/preprocessing/a11y/conflict_resolution.py:237
↓ 2 callers
Method
get_n_trials
(self, n_trials: int | None = None, nb_nodes: int = 0)
blanche/pipe/main.py:63
↓ 2 callers
Method
get_prompt_variables
( self, context: Context, previous_action_list: list[Action] | None = None )
blanche/pipe/listing.py:61
↓ 2 callers
Function
get_valid_locator
(index: int, step: int = 1)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:455
↓ 2 callers
Method
image_nodes
(self)
blanche/browser/node_type.py:607
↓ 2 callers
Function
increment_role
(role: str, count: int)
blanche/pipe/preprocessing/a11y/utils.py:31
↓ 2 callers
Method
interaction_nodes
(self, type: str = "processed", parent_path: str | None = None)
blanche/pipe/preprocessing/a11y/tree.py:70
↓ 2 callers
Function
keep_node
(node: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:247
↓ 2 callers
Method
llm_completion
(self, prompt_id: str, variables: dict[str, Any])
blanche/pipe/listing.py:26
↓ 2 callers
Method
long_wait
(self)
blanche/browser/driver.py:87
↓ 2 callers
Function
nb_valid_groups
(node: A11yNode)
blanche/pipe/preprocessing/a11y/grouping.py:31
↓ 2 callers
Method
observe
( self, url: str | None = None, min_nb_actions: int | None = None, max_nb_acti
blanche/env.py:133
↓ 2 callers
Function
parse_action_ids
Should be able to parse action ids in the following format: - B1 or [B1] - B1-3 or [B1-3] - B1-B3 or [B1-B3] - B1, B2, B3 or [B1
blanche/actions/parsing.py:27
↓ 2 callers
Method
parse_action_listing
(self, response: str)
blanche/pipe/listing.py:66
↓ 2 callers
Function
parse_action_parameters
Should be able to parse action parameters in the following format: - (parameterName1: Type1 = [value1, value2, ..., valueN], paramete
blanche/actions/parsing.py:65
↓ 2 callers
Method
parse_webpage_description
(self, response: str)
blanche/pipe/listing.py:82
↓ 2 callers
Function
prune_text_field_already_contained_in_parent_name
Prune a text field if it is already contained in the parent node's name to reduce redundancy. Example: group { heading "New iPho
blanche/pipe/preprocessing/a11y/text.py:21
↓ 2 callers
Method
refresh
()
blanche/actions/base.py:179
↓ 2 callers
Function
remove_http
(href: str)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:22
↓ 2 callers
Method
run
Main execution loop that coordinates between the LLM and Blanche environment. This method shows a basic conversation flow. Consider
examples/agent.py:144
↓ 2 callers
Method
screenshot
()
blanche/actions/base.py:155
↓ 2 callers
Function
set_of_interactive_nodes
(ax_tree: A11yNode)
blanche/pipe/preprocessing/a11y/traversal.py:120
↓ 2 callers
Method
short_id
(self)
blanche/browser/node_type.py:294
↓ 2 callers
Function
split_id
(sub_id_part: str)
blanche/actions/parsing.py:49
↓ 2 callers
Method
step
( self, action_id: str, params: dict[str, str] | str | None = None, enter: boo
blanche/env.py:199
↓ 2 callers
Method
step
Mock step method that returns a constant observation
tests/mock/mock_env.py:34
↓ 2 callers
Method
stop
Stop the playwright instance
blanche/browser/pool.py:122
↓ 2 callers
Method
textify_scrape
( self, obs: Observation, )
blanche/common/parser.py:152
↓ 2 callers
Method
textify_step
(self, obs: Observation)
blanche/common/parser.py:166
↓ 2 callers
Method
wait
()
blanche/actions/base.py:187
↓ 1 callers
Method
__post_init__
(self)
blanche/browser/node_type.py:553
↓ 1 callers
Method
_create_browser
Get an existing browser or create a new one if needed
blanche/browser/pool.py:158
↓ 1 callers
Method
_execute_special
( self, action_id: SpecialActionId, params: dict[str, str] | str | None = None, )
blanche/env.py:162
↓ 1 callers
Method
_find_browser_with_space
Find a browser with available space for a new context
blanche/browser/pool.py:200
↓ 1 callers
Method
_get_screenshot_matches
(self, res_files: list[str])
eval/webvoyager/eval.py:142
↓ 1 callers
Method
_prepare_image_content
(self, screenshot_files: list[tuple[str, int]])
eval/webvoyager/eval.py:152
↓ 1 callers
Method
_scrape_images
(self, context: Context)
blanche/pipe/data_scraping.py:206
↓ 1 callers
Function
_test_execution
(test: ExecutionTest, headless: bool)
tests/actions/test_execution.py:41
↓ 1 callers
Function
a11tree_to_markdown
(node: A11yNode, heading_level: int = 1)
blanche/pipe/preprocessing/a11y/viz.py:41
↓ 1 callers
Function
a11tree_to_tree_string
( node: A11yNode, prefix: str = "", is_last: bool = True, )
blanche/pipe/preprocessing/a11y/viz.py:6
↓ 1 callers
Function
all_except
(category: NodeCategory)
tests/browser/test_node_type.py:278
↓ 1 callers
Method
calculate_max_browsers
Calculate optimal number of browser instances
blanche/browser/pool.py:53
↓ 1 callers
Function
check_consistency
(node: A11yNode, other_node: A11yNode, soft: bool = False)
blanche/pipe/preprocessing/a11y/validation.py:13
↓ 1 callers
Method
check_enough_actions
( self, inodes_ids: list[str], action_list: list[Action], min_nb_actions: int
blanche/pipe/main.py:69
↓ 1 callers
Function
check_interactions_consistency_accross_ax_trees
( ax_tree: A11yNode, other_ax_tree: A11yNode, list_all: bool = False, soft: bool = False,
blanche/pipe/preprocessing/a11y/validation.py:28
↓ 1 callers
Function
classify_image_element
Classify an image or SVG element. Args: locator: Playwright locator for the image/svg element Returns: tuple[ImageType, str
blanche/pipe/data_scraping.py:18
↓ 1 callers
Function
classify_raster_image
Classify a regular image element.
blanche/pipe/data_scraping.py:77
↓ 1 callers
Function
classify_svg
Classify an SVG element specifically.
blanche/pipe/data_scraping.py:36
↓ 1 callers
Method
close
(self)
blanche/common/resource.py:19
↓ 1 callers
Method
close
Mock browser cleanup
tests/mock/mock_browser.py:121
↓ 1 callers
Method
compare_with
(self, other: "BrowserSnapshot")
blanche/browser/snapshot.py:28
↓ 1 callers
Function
complex_processing_accessiblity_tree
(node: A11yNode, config: PruningConfig | None = None)
blanche/pipe/preprocessing/a11y/pruning.py:237
↓ 1 callers
Method
compute_attributes
( self, node: BlancheNode, snapshot: BrowserSnapshot, )
blanche/pipe/resolution.py:42
↓ 1 callers
Function
compute_children_roles
(node: A11yNode)
blanche/pipe/preprocessing/a11y/utils.py:52
↓ 1 callers
Function
compute_children_roles_count
(node: A11yNode)
blanche/pipe/preprocessing/a11y/utils.py:23
↓ 1 callers
Function
compute_only_text_roles
(node: A11yNode)
blanche/pipe/preprocessing/a11y/text.py:10
↓ 1 callers
Function
compute_playwright_code
( action: ExecutableAction, )
blanche/actions/code.py:83
↓ 1 callers
Function
concat_text
(children: list[A11yNode])
blanche/pipe/preprocessing/a11y/grouping.py:98
↓ 1 callers
Method
embed_actions
(self, actions: list[Action])
blanche/actions/space.py:195
↓ 1 callers
Method
embed_query
(self, query: str)
blanche/actions/space.py:202
↓ 1 callers
Method
embedding_description
(self)
blanche/actions/base.py:87
↓ 1 callers
Method
encode_image
(self, image_name: str)
eval/webvoyager/eval.py:138
↓ 1 callers
Method
exclude_actions_with_invalid_category
(action: Action)
blanche/pipe/filtering.py:26
↓ 1 callers
Method
exclude_actions_with_invalid_description
(action: Action)
blanche/pipe/filtering.py:30
↓ 1 callers
Method
exclude_actions_with_invalid_params
(action: Action)
blanche/pipe/filtering.py:22
↓ 1 callers
Method
execute_action
Execute action in async mode
blanche/browser/driver.py:169
↓ 1 callers
Function
find_all_matching_subtrees_with_parents
(node: A11yNode, role: str, name: str | None = None)
blanche/pipe/preprocessing/a11y/traversal.py:48
↓ 1 callers
Function
find_common_ancestor
(locator1: Locator, locator2: Locator)
blanche/pipe/preprocessing/a11y/conflict_resolution.py:475
↓ 1 callers
Function
find_neighbors_with_valid_locators
()
blanche/pipe/preprocessing/a11y/conflict_resolution.py:451
↓ 1 callers
Method
find_node_path_by_id
(self, id: str, type: str = "processed")
blanche/pipe/preprocessing/a11y/tree.py:92
↓ 1 callers
Function
flatten_interactions
(children: list[A11yNode])
blanche/pipe/preprocessing/a11y/grouping.py:200
↓ 1 callers
Function
flatten_node
Flatten a node with children into a list of terminal nodes.
blanche/pipe/preprocessing/a11y/traversal.py:125
↓ 1 callers
Function
flatten_text
(node: A11yNode)
blanche/pipe/preprocessing/a11y/grouping.py:99
↓ 1 callers
Function
fold_paragraph_single_text_node
Fold a paragraph node with a single text node into a text node. Example: paragraph { text "Take a closer look at" } Sho
blanche/pipe/preprocessing/a11y/text.py:63
↓ 1 callers
Function
fold_single_child
(child: A11yNode)
blanche/pipe/preprocessing/a11y/pruning.py:293
↓ 1 callers
Method
forward
()
blanche/actions/base.py:171
↓ 1 callers
Method
forward
( self, action: Action, params_values: list[ActionParameterValue], context: Co
blanche/pipe/resolution.py:20
↓ 1 callers
Method
forward
( self, context: Context, **param: Unpack[ScrapeRequestDict], )
blanche/pipe/data_scraping.py:168
↓ 1 callers
Method
forward
( self, context: Context, previous_action_list: list[Action] | None = None, mi
blanche/pipe/main.py:19
↓ 1 callers
Method
forward_incremental
( self, context: Context, previous_action_list: list[Action], )
blanche/pipe/listing.py:116
↓ 1 callers
Method
forward_unfiltered
( self, context: Context, previous_action_list: list[Action] | None = None, n_
blanche/pipe/main.py:113
↓ 1 callers
Method
from_data
(data: DataSpace | None)
blanche/sdk/types.py:202
↓ 1 callers
Method
from_obs
( obs: Observation, session: SessionResponse, )
blanche/sdk/types.py:231
↓ 1 callers
Method
from_snapshot
( snapshot: BrowserSnapshot, space: ActionSpace | None = None, data: DataSpace | None = None )
blanche/browser/observation.py:49
↓ 1 callers
Method
from_space
(space: ActionSpace | None)
blanche/sdk/types.py:177
↓ 1 callers
Function
generate_playwright_code
(action: ExecutableAction, context: Context)
blanche/actions/code.py:6
↓ 1 callers
Function
get_action_from_node
(node: BlancheNode)
blanche/actions/code.py:16
↓ 1 callers
Method
get_done_answer
(self, text: str)
blanche/common/parser.py:38
↓ 1 callers
Function
get_executor
(action: ExecutableAction)
blanche/actions/executor.py:11
↓ 1 callers
Function
get_group_func
(group_type: NodeCategory)
blanche/pipe/preprocessing/a11y/grouping.py:14
↓ 1 callers
Function
get_html_selector
Convert a Playwright locator to its XPath representation, prioritizing IDs and full element paths. Args: locator: Playwright Loc
blanche/pipe/preprocessing/a11y/conflict_resolution.py:363
↓ 1 callers
Function
get_image_src
(locator: Locator)
blanche/pipe/data_scraping.py:139
↓ 1 callers
Function
get_locator_for_a11y_path
( page: Page, node: A11yNode, node_path: list[A11yNode], conflict_resolution: bool = True )
blanche/pipe/preprocessing/a11y/conflict_resolution.py:247
← previous
next →
101–200 of 564, ranked by callers