Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/datastax/astrapy
/ functions
Functions
2,040 in github.com/datastax/astrapy
⨍
Functions
2,040
◇
Types & classes
298
↳
Endpoints
61
↓ 3 callers
Method
coerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a CreateTypeDefinition.
astrapy/data/info/table_descriptor/type_creation.py:127
↓ 3 callers
Function
convert_to_ejson_date_object
( date_value: datetime.date | datetime.datetime, )
astrapy/data/utils/extended_json_converters.py:25
↓ 3 callers
Function
create_key_ktpostprocessor
( primary_key_schema: dict[str, TableColumnTypeDescriptor], options: FullSerdesOptions, )
astrapy/data/utils/table_converters.py:609
↓ 3 callers
Function
env_region_from_endpoint
(api_endpoint: str)
tests/conftest.py:110
↓ 3 callers
Function
fetch_database_info
Fetch database information through the DevOps API. Args: api_endpoint: a full API endpoint for the Data API. token: a valid
astrapy/admin/admin.py:333
↓ 3 callers
Method
from_event_dict
Create an Observer object wrapping a caller-provided dictionary. The resulting observer will simply append the events it receives in
astrapy/event_observers/observers.py:115
↓ 3 callers
Method
get_collection
( self, name: str, *, keyspace: str | None = None, embedding_api_key:
astrapy/data/database.py:2756
↓ 3 callers
Method
get_token
(self)
astrapy/authentication.py:205
↓ 3 callers
Method
to_string
Express the timestamp as a string according to the Data API RFC3339 syntax, including the presence of a sign, and the number of digit
astrapy/data_types/data_api_timestamp.py:379
↓ 3 callers
Method
with_options
Create a clone of this database with some changed attributes. Args: keyspace: this is the keyspace all method calls will
astrapy/data/database.py:253
↓ 3 callers
Method
with_options
Create a clone of this database with some changed attributes. Args: keyspace: this is the keyspace all method calls will
astrapy/data/database.py:2491
↓ 3 callers
Method
with_vector_source_model
Return a new collection definition object with a new setting for the collection's vector 'source model' parameter. This method is for
astrapy/data/info/collection_descriptor.py:591
↓ 2 callers
Method
__repr__
(self)
astrapy/data/info/collection_descriptor.py:321
↓ 2 callers
Method
__repr__
(self)
astrapy/data/info/table_descriptor/table_listing.py:67
↓ 2 callers
Method
__str__
(self)
astrapy/exceptions/collection_exceptions.py:77
↓ 2 callers
Function
_accumulate_pairs
( destination: tuple[list[T], list[U]], source: Iterable[tuple[T, U]] )
astrapy/data_types/data_api_map.py:25
↓ 2 callers
Method
_async_can_poll
( self, *, timeout_context: _TimeoutContext, caller_function_name: str, )
astrapy/admin/admin.py:3345
↓ 2 callers
Method
_b64
(cleartext: str)
astrapy/authentication.py:251
↓ 2 callers
Method
_can_poll
( self, *, timeout_context: _TimeoutContext, caller_function_name: str, )
astrapy/admin/admin.py:3331
↓ 2 callers
Function
_clean_col
(col_dict: dict[str, Any])
tests/base/integration/tables/test_table_lifecycle_async.py:57
↓ 2 callers
Function
_clean_col
(col_dict: dict[str, Any])
tests/base/integration/tables/test_table_lifecycle_sync.py:57
↓ 2 callers
Function
_collapse
(longt: str)
tests/vectorize/vectorize_models.py:244
↓ 2 callers
Function
_column_filler_value
Prepare a 'filler' for omitted columns. Usually a None, but not always, e.g. for a list it is []. This is used before any options-related
astrapy/data/utils/table_converters.py:298
↓ 2 callers
Method
_compose_request_url
(self, additional_path: str | None)
astrapy/utils/api_commander.py:303
↓ 2 callers
Function
_create_column_tpostprocessor
( col_def: TableColumnTypeDescriptor, options: FullSerdesOptions, )
astrapy/data/utils/table_converters.py:357
↓ 2 callers
Method
_decimal_unaware_parse_json_response
(response_text: str)
astrapy/utils/api_commander.py:408
↓ 2 callers
Function
_deprecated_callable
Decorator factory for a callable that is a deprecated alias. Args: kind: label for the warning message, e.g. "Property" or "Method".
astrapy/utils/meta.py:74
↓ 2 callers
Method
_from_dict
Create an instance of ListTableDefinition from a dictionary such as one from the Data API.
astrapy/data/info/table_descriptor/table_listing.py:93
↓ 2 callers
Method
_from_dict
Create an instance of AlterTypeAddFields from a dictionary such as one suitable as (partial) command payload.
astrapy/data/info/table_descriptor/type_altering.py:149
↓ 2 callers
Function
_from_validation
(pspec: EmbeddingProviderParameter)
tests/vectorize/vectorize_models.py:229
↓ 2 callers
Method
_get_key_postprocessor
( self, primary_key_schema_dict: dict[str, Any] )
astrapy/data/utils/table_converters.py:917
↓ 2 callers
Method
_get_row_postprocessor
( self, columns_dict: dict[str, Any], similarity_pseudocolumn: str | None, )
astrapy/data/utils/table_converters.py:932
↓ 2 callers
Function
_hash_collection_document
( document: dict[str, Any], options: FullSerdesOptions )
astrapy/data/utils/distinct_extractors.py:183
↓ 2 callers
Method
_hash_dict
(input_dict: dict[str, Any])
astrapy/data/utils/table_converters.py:907
↓ 2 callers
Function
_hash_table_document
(document: dict[str, Any], options: FullSerdesOptions)
astrapy/data/utils/distinct_extractors.py:196
↓ 2 callers
Function
_maybe_valid_list_index
(key_block: str)
astrapy/data/utils/distinct_extractors.py:38
↓ 2 callers
Function
_mk_line
(file_k, file_v)
tests/coverage_utils/calc_delta.py:131
↓ 2 callers
Function
_my_int
(st: str)
tests/conftest.py:127
↓ 2 callers
Method
_name_lookup
Return a proper key in the enum if some matching logic works, or None.
astrapy/utils/str_enum.py:24
↓ 2 callers
Function
_nearly_equal_lists
(list1: list[float], list2: list[float])
tests/base/unit/test_dataapivector.py:37
↓ 2 callers
Function
_nearly_equal_vectors
(vec1: DataAPIVector, vec2: DataAPIVector)
tests/base/unit/test_dataapivector.py:45
↓ 2 callers
Method
_prepare_keys_from_status
( self, status: dict[str, Any] | None, raise_on_missing: bool = False )
astrapy/data/table.py:1518
↓ 2 callers
Method
_prepare_keys_from_status
( self, status: dict[str, Any] | None, raise_on_missing: bool = False )
astrapy/data/table.py:4604
↓ 2 callers
Method
_raw_response_to_json
( self, raw_response: httpx.Response, raise_api_errors: bool, payload: dict[st
astrapy/utils/api_commander.py:309
↓ 2 callers
Function
_remove_definition
Strip definition keys from columns since its presence is != between sending and receiving. Useful for UDT columns
tests/base/integration/tables/test_table_lifecycle_async.py:66
↓ 2 callers
Function
_remove_definition
Strip definition keys from columns since its presence is != between sending and receiving. Useful for UDT columns
tests/base/integration/tables/test_table_lifecycle_sync.py:66
↓ 2 callers
Function
_split_distinct_key_to_safe_blocks
Make the provided key into a list of the blocks
astrapy/data/utils/distinct_extractors.py:124
↓ 2 callers
Function
_tpostprocessor_udt_baredict
( raw_items: dict[Any, Any] | None, )
astrapy/data/utils/table_converters.py:523
↓ 2 callers
Function
_year_to_unix_timestamp_ms_backward
(year: int)
astrapy/utils/date_utils.py:89
↓ 2 callers
Function
_year_to_unix_timestamp_ms_forward
(year: int)
astrapy/utils/date_utils.py:78
↓ 2 callers
Function
api_endpoint_parsing_cdinfo_message
Format a warning message about a possibly-custom-domain API endpoint.
astrapy/admin/endpoints.py:96
↓ 2 callers
Method
as_dict
Recast this object into a dictionary.
astrapy/data/info/database_info.py:740
↓ 2 callers
Method
as_dict
(self)
astrapy/data/info/table_descriptor/table_altering.py:45
↓ 2 callers
Method
as_dict
Recast this object into a dictionary.
astrapy/data/info/table_descriptor/type_creation.py:104
↓ 2 callers
Method
as_dict
Recast this object into a dictionary.
astrapy/data/info/table_descriptor/table_indexes.py:349
↓ 2 callers
Method
as_dict
Recast this object into a dictionary.
astrapy/data/info/table_descriptor/table_indexes.py:420
↓ 2 callers
Method
as_dict
Recast this object into a dictionary.
astrapy/data/info/table_descriptor/table_indexes.py:491
↓ 2 callers
Method
async_database_info
Get the full information on a given database, through a request to the DevOps API. This is an awaitable method suitable for use withi
astrapy/admin/admin.py:993
↓ 2 callers
Method
async_drop
Drop this database, i.e. delete it completely and permanently with all its data. Async version of the method, for use in an asyncio
astrapy/admin/admin.py:4189
↓ 2 callers
Method
async_drop_database
Drop a database, i.e. delete it completely and permanently with all its data. Async version of the method, for use in an asyncio con
astrapy/admin/admin.py:1795
↓ 2 callers
Function
async_fetch_raw_database_info_from_id_token
Fetch database information through the DevOps API and return it in full, exactly like the API gives it back. Async version of the functio
astrapy/admin/admin.py:234
↓ 2 callers
Method
async_list_keyspaces
Query the DevOps API for a list of the keyspaces in the database. Async version of the method, for use in an asyncio context.
astrapy/admin/admin.py:3554
↓ 2 callers
Function
check_id_endpoint_parg_kwargs
Utility function helping with the transition to endpoint-first constructors, with ID being the other possibility. It is called with the
astrapy/admin/admin.py:96
↓ 2 callers
Method
coerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a ListTypeDescriptor.
astrapy/data/info/table_descriptor/type_listing.py:135
↓ 2 callers
Method
database_info
Get the full information on a given database, through a request to the DevOps API. Args: id: the ID of the target databa
astrapy/admin/admin.py:921
↓ 2 callers
Function
desc_param
(param_data: EmbeddingProviderParameter)
tests/vectorize/query_providers.py:29
↓ 2 callers
Method
drop_database
Drop a database, i.e. delete it completely and permanently with all its data. Args: id: The ID of the database to drop,
astrapy/admin/admin.py:1676
↓ 2 callers
Function
ensure_empty_target_database
( database: Database, *, is_astra_db: bool, test_suite_name: str, )
tests/empty_database_guard.py:90
↓ 2 callers
Function
ensure_unrolled_if_iterable
(value: Any)
astrapy/data/utils/vector_coercion.py:25
↓ 2 callers
Function
event_collector
Create a context manager wrapping a list (of `ObservableEvent` objects) or a dict (with `ObservableEventType` keys and `list[ObservableEvent]
astrapy/event_observers/context_managers.py:42
↓ 2 callers
Function
extended_booleanize_env
Extended booleanize for environment variables. Accepts also "1"/"0", "yes"/"no", "true"/"false" (case insensitive). If the variable is no
tests/preprocess_env.py:61
↓ 2 callers
Function
fetch_raw_database_info_from_id_token
Fetch database information through the DevOps API and return it in full, exactly like the API gives it back. Args: id: e. g. "01
astrapy/admin/admin.py:136
↓ 2 callers
Function
floats_to_bytes
Convert a list of floats into a binary blob according to the Data API's conventions, suitable for working with the "vector" table column type
astrapy/data_types/data_api_vector.py:33
↓ 2 callers
Method
get_headers
(self)
astrapy/authentication.py:364
↓ 2 callers
Method
get_headers
(self)
astrapy/authentication.py:507
↓ 2 callers
Method
get_token
(self)
astrapy/authentication.py:255
↓ 2 callers
Method
issubset
(self, other: Any)
astrapy/data_types/data_api_set.py:121
↓ 2 callers
Method
issuperset
(self, other: Any)
astrapy/data_types/data_api_set.py:124
↓ 2 callers
Method
list_index_names
List the names of all indexes existing on this table. Args: table_admin_timeout_ms: a timeout, in milliseconds, to impos
astrapy/data/table.py:1099
↓ 2 callers
Method
list_keyspaces
Query the DevOps API for a list of the keyspaces in the database. Args: keyspace_admin_timeout_ms: a timeout, in millise
astrapy/admin/admin.py:3516
↓ 2 callers
Method
list_tables
List all tables in a given keyspace for this database. Args: keyspace: the keyspace to be inspected. If not specified,
astrapy/data/database.py:1631
↓ 2 callers
Function
live_provider_info
Query the API endpoint `findEmbeddingProviders` endpoint for the latest information. This utility function uses the environment variable
tests/vectorize/live_provider_info.py:33
↓ 2 callers
Function
live_test_models
()
tests/vectorize/vectorize_models.py:228
↓ 2 callers
Function
log_httpx_request
Log the details of an HTTP request for debugging purposes. Args: http_method: the HTTP verb of the request (e.g. "POST"). fu
astrapy/utils/request_tools.py:27
↓ 2 callers
Function
log_httpx_response
Log the details of an httpx.Response. Args: response: the httpx.Response object to log.
astrapy/utils/request_tools.py:63
↓ 2 callers
Method
postprocess_keys
The primary key schema is not coerced here, just parsed from its json
astrapy/data/utils/table_converters.py:971
↓ 2 callers
Method
postprocess_rows
The columns schema is not coerced here, just parsed from its json
astrapy/data/utils/table_converters.py:1005
↓ 2 callers
Function
preprocess_collection_payload_value
The path helps determining special treatments
astrapy/data/utils/collection_converters.py:52
↓ 2 callers
Function
preprocess_table_payload_value
Walk a payload for Tables and apply the necessary and required conversions to make it into a ready-to-jsondumps object.
astrapy/data/utils/table_converters.py:648
↓ 2 callers
Method
rerank_query
Return a copy of this cursor with a new rerank_query setting. This operation is allowed only if the cursor state is still IDLE.
astrapy/data/cursors/farr_cursor.py:551
↓ 2 callers
Method
rerank_service
Return a copy of this cursor with a new rerank_service setting. This operation is allowed only if the cursor state is still IDLE.
astrapy/data/cursors/farr_cursor.py:572
↓ 2 callers
Method
stack
(cls: type[AYO], operations: list[AYO])
astrapy/data/info/table_descriptor/type_altering.py:95
↓ 2 callers
Method
summary
Determine a string succinct description of this descriptor. The precise format of this summary is determined by which fields are set
astrapy/exceptions/error_descriptors.py:96
↓ 2 callers
Function
to_dataapi_timeout_exception
( httpx_timeout: httpx.TimeoutException, timeout_context: _TimeoutContext, )
astrapy/exceptions/__init__.py:64
↓ 2 callers
Function
to_devopsapi_timeout_exception
( httpx_timeout: httpx.TimeoutException, timeout_context: _TimeoutContext, )
astrapy/exceptions/__init__.py:106
↓ 2 callers
Function
to_httpx_timeout
(timeout_context: _TimeoutContext)
astrapy/utils/request_tools.py:83
↓ 2 callers
Method
to_string
Convert the DataAPIDuration to a string according to the Data API ISO-8601 standard. Returns: a string expressin
astrapy/data_types/data_api_duration.py:135
↓ 2 callers
Method
union
(self, *others: Any)
astrapy/data_types/data_api_set.py:127
↓ 2 callers
Method
with_options
Create a clone of this DataAPIClient with some changed attributes. Args: token: an Access Token to the database. Example
astrapy/client.py:168
↓ 1 callers
Method
__anext__
(self)
astrapy/data/cursors/farr_cursor.py:1158
← previous
next →
301–400 of 2,040, ranked by callers