Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Titan-Systems/titan
/ functions
Functions
1,136 in github.com/Titan-Systems/titan
⨍
Functions
1,136
◇
Types & classes
335
↳
Endpoints
2
↓ 94 callers
Method
get
(self, key: URN, default=None)
titan/blueprint.py:236
↓ 93 callers
Function
execute
( conn_or_cursor: Union[SnowflakeConnection, SnowflakeCursor], sql: str, cacheable: bool = False,
titan/client.py:40
↓ 81 callers
Function
parse_URN
(urn_str: str)
titan/identifiers.py:292
↓ 74 callers
Function
safe_fetch
(cursor, urn)
tests/helpers.py:123
↓ 62 callers
Method
items
(self)
titan/blueprint.py:242
↓ 58 callers
Function
_quote_snowflake_identifier
(identifier: Union[str, ResourceName])
titan/data_provider.py:64
↓ 58 callers
Method
to_dict
(self)
titan/blueprint.py:91
↓ 53 callers
Method
generate_manifest
(self, session_ctx: SessionContext)
titan/blueprint.py:937
↓ 49 callers
Method
plan
(self, session)
titan/blueprint.py:948
↓ 49 callers
Function
tidy_sql
(*parts)
titan/builder.py:1
↓ 49 callers
Method
upper
(self)
titan/resource_name.py:82
↓ 45 callers
Method
add
(self, resource: Resource, account_edition: AccountEdition)
titan/blueprint.py:211
↓ 44 callers
Function
create
(cursor, resource: Resource)
tests/integration/data_provider/test_fetch_resource.py:39
↓ 40 callers
Function
_get_owner_identifier
(data: dict)
titan/data_provider.py:68
↓ 40 callers
Method
_plan
(self, remote_state: State, manifest: Manifest)
titan/blueprint.py:596
↓ 39 callers
Function
resource_name_from_snowflake_metadata
(name: str)
titan/resource_name.py:17
↓ 39 callers
Method
startswith
(self, prefix: str)
titan/resource_name.py:85
↓ 37 callers
Method
create_sql
( self, account_edition: Optional[AccountEdition] = None, **kwargs, )
titan/resources/resource.py:396
↓ 34 callers
Function
clean_resource_data
(spec: type[ResourceSpec], data: dict)
tests/helpers.py:33
↓ 31 callers
Method
add
(self, *resources)
titan/blueprint.py:1026
↓ 30 callers
Method
requires
(self, *resources: "Resource")
titan/resources/resource.py:421
↓ 28 callers
Function
_show_resources
(session: SnowflakeConnection, type_str, fqn: FQN, cacheable: bool = True)
titan/data_provider.py:436
↓ 27 callers
Method
apply
(self, session, plan: Optional[Plan] = None)
titan/blueprint.py:968
↓ 27 callers
Method
parse
(self, sql)
titan/props.py:75
↓ 25 callers
Method
copy
Copy the file/directory into the destination. If source is a directory, its whole content is copied recursively. Permissions
titan/operations/connector.py:302
↓ 20 callers
Method
__init__
(self, label, value_expr=ANY(), eq=True, parens=False, alt_tokens=[], consume=[])
titan/props.py:39
↓ 20 callers
Function
_filter_result
(result, **kwargs)
titan/data_provider.py:192
↓ 20 callers
Function
parse_region
Parse a Snowflake region identifier into its components. Examples: AWS_US_WEST_2 -> {'cloud': 'AWS', 'cloud_region': 'US_WEST_2'}
titan/parse.py:724
↓ 19 callers
Function
Keywords
(keywords: str)
titan/parse.py:34
↓ 18 callers
Method
from_resource
(cls, resource, account_locator: str = "")
titan/identifiers.py:132
↓ 18 callers
Method
keys
(self)
titan/resource_tags.py:42
↓ 18 callers
Function
resource_label_for_type
(resource_type: ResourceType)
titan/identifiers.py:312
↓ 17 callers
Function
_contains
(parser, text)
titan/parse.py:277
↓ 17 callers
Method
render
(self, value)
titan/props.py:85
↓ 17 callers
Method
set_tags
(self, tags: Optional[dict[str, str]])
titan/resources/tag.py:152
↓ 16 callers
Function
collect_blueprint_config
(yaml_config: dict, cli_config: Optional[dict[str, Any]] = None)
titan/gitops.py:212
↓ 16 callers
Method
exists
Return True if the path points to an existing file or directory.
titan/operations/connector.py:170
↓ 15 callers
Function
Literals
(keywords: str)
titan/parse.py:41
↓ 15 callers
Function
_walk
(resource: Resource)
titan/blueprint.py:408
↓ 15 callers
Method
items
(self, resource_type: Optional[ResourceType] = None)
titan/resources/resource.py:527
↓ 14 callers
Function
compile_plan_to_sql
(session_ctx: SessionContext, plan: Plan)
titan/blueprint.py:1220
↓ 12 callers
Function
dump_plan
(plan: Plan, format: str = "json")
titan/blueprint.py:265
↓ 12 callers
Method
from_sql
CREATE [ OR REPLACE ] [ { [ { LOCAL | GLOBAL } ] TEMP | TEMPORARY | VOLATILE | TRANSIENT } ] TABLE [ IF NOT EXISTS ] <table_n
titan/resources/table.py:163
↓ 12 callers
Function
resource_type_for_label
(resource_label: str)
titan/identifiers.py:316
↓ 12 callers
Function
smart_split
Split while respecting double-quoted identifiers
titan/identifiers.py:328
↓ 11 callers
Function
_merge_pointers
It is expected in yaml-defined blueprints that all resources are defined with static strings, instead of using object references.
titan/blueprint.py:422
↓ 11 callers
Function
convert_role_ref
(role_ref: RoleRef)
titan/resources/resource.py:711
↓ 11 callers
Method
drop_sql
( self, if_exists: bool = False, account_edition: Optional[AccountEdition] = None,
titan/resources/resource.py:408
↓ 11 callers
Function
list_schema_scoped_resource
(session: SnowflakeConnection, resource)
titan/data_provider.py:2416
↓ 10 callers
Function
_fetch_owner
(session: SnowflakeConnection, type_str: str, fqn: FQN)
titan/data_provider.py:428
↓ 10 callers
Method
_finalize
(self, session_ctx: SessionContext)
titan/blueprint.py:924
↓ 10 callers
Method
add
(self, *items: Resource)
titan/resources/resource.py:513
↓ 10 callers
Function
assert_resource_dicts_eq_ignore_nulls
(lhs: dict, rhs: dict)
tests/helpers.py:20
↓ 9 callers
Function
_parse_list_property
(property_str: str)
titan/data_provider.py:302
↓ 9 callers
Method
from_config
(cls, config: BlueprintConfig)
titan/blueprint.py:547
↓ 9 callers
Method
is_dir
Return True if the path points to a directory (or a symbolic link pointing to a directory), False if it points to another kind of fil
titan/operations/connector.py:176
↓ 9 callers
Method
resolve_resource_cls
(cls, resource_type: ResourceType, data: dict = None)
titan/resources/resource.py:358
↓ 8 callers
Function
get_json_fixture
(resource_name)
tests/helpers.py:64
↓ 8 callers
Function
merge_configs
(config1: dict, config2: dict)
titan/gitops.py:305
↓ 8 callers
Function
parse_FQN
(fqn_str: str, is_db_scoped=False)
titan/identifiers.py:278
↓ 7 callers
Function
assert_resource_dicts_eq_ignore_nulls_and_unfetchable
(spec, lhs: dict, rhs: dict)
tests/helpers.py:43
↓ 7 callers
Function
fetch_session
(session: SnowflakeConnection)
titan/data_provider.py:633
↓ 7 callers
Method
from_dict
(cls, data: dict)
titan/resources/resource.py:349
↓ 7 callers
Function
read_test_account_config
(config_path: str)
tools/manage_test_account.py:25
↓ 7 callers
Function
reset_cache
()
titan/client.py:35
↓ 6 callers
Function
_desc_type2_result_to_dict
(desc_result, lower_properties=False)
titan/data_provider.py:91
↓ 6 callers
Function
_parse_permifrost_identifier
Parse a permifrost identifier into a database and schema. Args: identifier (str): The identifier to parse. is_db_scoped (boo
titan/adapters/permifrost.py:66
↓ 6 callers
Function
get_json_fixtures
()
tests/helpers.py:75
↓ 6 callers
Function
list_account_scoped_resource
(session: SnowflakeConnection, resource)
titan/data_provider.py:2408
↓ 6 callers
Function
params_result_to_dict
(params_result)
titan/data_provider.py:367
↓ 5 callers
Method
__init__
( self, name: str, enabled: bool, allowed_recipients: list[str], comme
titan/resources/notification_integration.py:93
↓ 5 callers
Method
__init__
( self, implicit: bool = False, lifecycle: dict = None, **kwargs, )
titan/resources/resource.py:278
↓ 5 callers
Function
_desc_result_to_dict
(desc_result, lower_properties=False)
titan/data_provider.py:81
↓ 5 callers
Function
_list_databases
(session: SnowflakeConnection)
titan/data_provider.py:2471
↓ 5 callers
Function
_parse_props
(props, sql)
titan/parse.py:457
↓ 5 callers
Method
_raise_for_nonconforming_plan
(self, session_ctx: SessionContext, plan: Plan)
titan/blueprint.py:556
↓ 5 callers
Function
_show_grants_to_role
{ 'created_on': datetime.datetime(2024, 2, 28, 20, 5, 32, 166000, tzinfo=<DstTzInfo 'America/Los_Angeles' PST-1 day, 16:00:00 STD>),
titan/data_provider.py:543
↓ 5 callers
Method
assert_exists
(self)
titan/operations/connector.py:414
↓ 5 callers
Function
connect
( mfa_passcode: Optional[str] = None, enable_diag: Optional[bool] = False, diag_log_path: Optional
titan/operations/connector.py:63
↓ 5 callers
Function
fetch_columns
(session: SnowflakeConnection, resource_type: str, fqn: FQN)
titan/data_provider.py:846
↓ 5 callers
Method
find
(self, resource_type: ResourceType, name: Union[ResourceName, str])
titan/resources/resource.py:533
↓ 5 callers
Function
infer_role_type_from_name
(name: Union[str, ResourceName])
titan/resources/resource.py:727
↓ 5 callers
Method
is_file
Return True if the path points to a regular file (or a symbolic link pointing to a regular file), False if it points to another kind
titan/operations/connector.py:183
↓ 5 callers
Function
parse_collection_string
(collection: str)
titan/parse.py:702
↓ 5 callers
Function
parse_identifier
(identifier: str, is_db_scoped=False)
titan/identifiers.py:212
↓ 5 callers
Function
update__default
(urn: URN, data: dict, props: Props)
titan/lifecycle.py:273
↓ 4 callers
Method
__init__
( self, priv: str = None, on: Any = None, to: Role = None, grant_optio
titan/resources/grant.py:103
↓ 4 callers
Method
__post_init__
(self)
titan/resources/grant.py:33
↓ 4 callers
Function
_blueprint
()
tests/integration/test_blueprint.py:76
↓ 4 callers
Function
_parse_packages
(packages_str: str)
titan/data_provider.py:325
↓ 4 callers
Function
_parse_signature
(signature: str)
titan/data_provider.py:311
↓ 4 callers
Function
_resource_names_are_eq
(lhs, rhs)
tests/test_identities.py:59
↓ 4 callers
Function
collect_vars_from_environment
()
titan/gitops.py:342
↓ 4 callers
Function
convert_to_canonical_data_type
(data_type: Union[str, DataType, None])
titan/data_types.py:10
↓ 4 callers
Function
export_resources
( session=None, include: Optional[list[ResourceType]] = None, exclude: Optional[list[ResourceType]] = None
titan/operations/export.py:17
↓ 4 callers
Function
format_collection_string
(collection: dict)
titan/parse.py:720
↓ 4 callers
Method
get_metadata
(cls, field_name: str)
titan/resources/resource.py:240
↓ 4 callers
Function
parse_grant
(sql: str)
titan/parse.py:177
↓ 4 callers
Function
print_plan
(plan: Plan)
titan/blueprint.py:359
↓ 4 callers
Function
string_contains_var
(string: str)
titan/var.py:40
next →
1–100 of 1,136, ranked by callers