MCPcopy Index your code

hub / github.com/datastax/astrapy / functions

Functions2,040 in github.com/datastax/astrapy

↓ 6 callersMethoduse_keyspace
Switch to a new working keyspace for this database. This method changes (mutates) the Database instance. Note that this meth
astrapy/data/database.py:335
↓ 6 callersMethodwith_defaults
Return a new DatabaseDefinition with the default values for all fields that are not set, such that the results makes for a valid
astrapy/data/info/database_info.py:513
↓ 5 callersMethod__init__
( self, *, callers: Sequence[CallerType] | UnsetType = _UNSET, database_additi
astrapy/utils/api_options.py:1037
↓ 5 callersMethod__init__
(self, text: str | None = None)
astrapy/exceptions/devops_api_exceptions.py:28
↓ 5 callersMethod__init__
( self, text: str, *, cursor_state: str, )
astrapy/exceptions/data_api_exceptions.py:244
↓ 5 callersMethod_copy
( self, *, keyspace: str | None = None, token: str | TokenProvider | UnsetType
astrapy/data/database.py:234
↓ 5 callersMethod_copy
( self, *, keyspace: str | None = None, token: str | TokenProvider | UnsetType
astrapy/data/database.py:2472
↓ 5 callersFunction_failsafe_parse_date
(date_string: str | None)
astrapy/data/info/database_info.py:31
↓ 5 callersMethod_from_dict
Create an instance of CollectionDefinition from a dictionary such as one from the Data API.
astrapy/data/info/collection_descriptor.py:362
↓ 5 callersMethod_from_dict
Create an instance of EmbeddingProvider from a dictionary such as one from the Data API.
astrapy/data/info/vectorize.py:427
↓ 5 callersMethod_intersect
(self, other: Any)
astrapy/data_types/data_api_set.py:161
↓ 5 callersFunction_is_leap_year
(year: int)
astrapy/utils/date_utils.py:42
↓ 5 callersMethod_is_valid_dict
Assess whether a dictionary can be converted into a ListTypeDescriptor. This can be used by e.g. the database `list_types` method to
astrapy/data/info/table_descriptor/type_listing.py:77
↓ 5 callersFunction_min_labeled_timeout
( *timeouts: tuple[int | None, str | None], )
astrapy/exceptions/utils.py:33
↓ 5 callersFunction_wrapSomeOptions
( src_database: Database, *, callers: Sequence[CallerType] | UnsetType = _UNSET, embedding_api
tests/base/unit/test_collections_sync.py:33
↓ 5 callersFunction_wrapSomeOptions
( asrc_database: AsyncDatabase, *, callers: Sequence[CallerType] | UnsetType = _UNSET, embeddi
tests/base/unit/test_collections_async.py:33
↓ 5 callersMethodas_dict
Recast this object into a dictionary.
astrapy/data/info/table_descriptor/table_indexes.py:78
↓ 5 callersMethodasync_info
Query the DevOps API for the full info on this database. Async version of the method, for use in an asyncio context. Args:
astrapy/admin/admin.py:3471
↓ 5 callersMethodasync_raw_request
( self, *, caller_function_name: str | None, request_id: str | None, h
astrapy/utils/api_commander.py:556
↓ 5 callersFunctionbuild_api_endpoint
Build the API Endpoint full strings from database parameters. Args: environment: a label, whose value can be Environment.PROD
astrapy/admin/endpoints.py:141
↓ 5 callersFunctioncoerce_embedding_headers_provider
( embedding_api_key: str | EmbeddingHeadersProvider, )
astrapy/authentication.py:54
↓ 5 callersFunctioncoerce_token_provider
( token: str | TokenProvider, )
astrapy/authentication.py:36
↓ 5 callersMethodfrom_date
Convert a Python standard-library date into a DataAPIDate. Args: dt: a `datetime.date` object. Returns:
astrapy/data_types/data_api_date.py:202
↓ 5 callersMethodget_database
Create a Database instance from this database admin, for data-related tasks. Args: keyspace: if provided, it is passed t
astrapy/admin/admin.py:4251
↓ 5 callersMethodget_database
Create a Database instance for a specific database, to be used when doing data-level work (such as creating/managing collections).
astrapy/admin/admin.py:4898
↓ 5 callersMethodlist_databases
Get the list of databases, as obtained with a request to the DevOps API. Args: include: a filter on what databases are t
astrapy/admin/admin.py:648
↓ 5 callersMethodlist_type_names
List the names of all user-defined types (UDTs) in a keyspace of this database. Args: keyspace: the keyspace to be inspe
astrapy/data/database.py:1851
↓ 5 callersMethodraw_request
( self, *, caller_function_name: str | None, request_id: str | None, h
astrapy/utils/api_commander.py:466
↓ 5 callersMethodto_async
Create an AsyncDatabase from this one. Save for the arguments explicitly provided as overrides, everything else is kept identical
astrapy/data/database.py:291
↓ 5 callersMethodto_async
Create an AsyncCollection from this one. Save for the arguments explicitly provided as overrides, everything else is kept identical
astrapy/data/collection.py:448
↓ 5 callersMethodto_date
Attempt to convert the date into a Python standard-library `datetime.date`. This operation may fail with a ValueError if the DataAPID
astrapy/data_types/data_api_date.py:178
↓ 5 callersMethodto_sync
Create a Collection from this one. Save for the arguments explicitly provided as overrides, everything else is kept identical
astrapy/data/collection.py:3444
↓ 5 callersMethodto_time
Convert the DataAPITime into a Python standard-library `datetime.time` object. This may involve a loss of precision since the latter
astrapy/data_types/data_api_time.py:182
↓ 5 callersMethodwith_options
Create a clone of this collection with some changed attributes. Args: embedding_api_key: optional API key(s) for interac
astrapy/data/collection.py:399
↓ 5 callersMethodwith_options
Create a clone of this collection with some changed attributes. Args: embedding_api_key: optional API key(s) for interac
astrapy/data/collection.py:3395
↓ 4 callersFunction_accumulate
(destination: list[T], source: Iterable[T])
astrapy/data_types/data_api_set.py:23
↓ 4 callersMethod_copy
( self: AsyncCollection[DOC], *, embedding_api_key: str | EmbeddingHeadersProvider | U
astrapy/data/collection.py:3374
↓ 4 callersMethod_decimal_unaware_encode_payload
(payload: dict[str, Any] | None)
astrapy/utils/api_commander.py:426
↓ 4 callersMethod_from_dict
Create an instance of AlterTableAddColumns from a dictionary such as one suitable as (partial) command payload.
astrapy/data/info/table_descriptor/table_altering.py:133
↓ 4 callersFunction_recast_as_admin_database_info
( admin_database_info_dict: dict[str, Any], *, environment: str, )
astrapy/admin/admin.py:422
↓ 4 callersFunction_remove_apisupport
Strip apiSupport keys from columns since its presence is != between sending and receiving.
tests/base/integration/tables/test_table_lifecycle_async.py:51
↓ 4 callersFunction_remove_apisupport
Strip apiSupport keys from columns since its presence is != between sending and receiving.
tests/base/integration/tables/test_table_lifecycle_sync.py:51
↓ 4 callersMethod_try_ensure_fill_buffer
If buffer is empty, try to fill with next page, if applicable. If not possible, silently do nothing. This method never change
astrapy/data/cursors/farr_cursor.py:232
↓ 4 callersMethod_try_ensure_fill_buffer
If buffer is empty, try to fill with next page, if applicable. If not possible, silently do nothing. This method never change
astrapy/data/cursors/farr_cursor.py:1117
↓ 4 callersMethod_try_ensure_fill_buffer
If buffer is empty, try to fill with next page, if applicable. If not possible, silently do nothing. This method never change
astrapy/data/cursors/find_cursor.py:196
↓ 4 callersMethod_try_ensure_fill_buffer
If buffer is empty, try to fill with next page, if applicable. If not possible, silently do nothing. This method never change
astrapy/data/cursors/find_cursor.py:985
↓ 4 callersMethod_try_ensure_fill_buffer
If buffer is empty, try to fill with next page, if applicable. If not possible, silently do nothing. This method never change
astrapy/data/cursors/find_cursor.py:1678
↓ 4 callersMethod_try_ensure_fill_buffer
If buffer is empty, try to fill with next page, if applicable. If not possible, silently do nothing. This method never change
astrapy/data/cursors/find_cursor.py:2464
↓ 4 callersMethodadd_scalar_column
Return a new table definition object with an added column of a scalar type (i.e. not a list, set or other composite type). Th
astrapy/data/info/table_descriptor/table_creation.py:303
↓ 4 callersMethodadd_set_column
Return a new table definition object with an added column of 'set' type. This method is for use within the fluent interface f
astrapy/data/info/table_descriptor/table_creation.py:361
↓ 4 callersMethodas_dict
Recast this object into a dictionary.
astrapy/data/info/vectorize.py:412
↓ 4 callersMethodas_spec
Return a representation of this column type for use within schema description, preferring the short form ("INT") over the long form
astrapy/data/info/table_descriptor/table_columns.py:145
↓ 4 callersMethodasync_list_databases
Get the list of databases, as obtained with a request to the DevOps API. Async version of the method, for use in an asyncio context.
astrapy/admin/admin.py:784
↓ 4 callersFunctionclean_nulls_from_dict
(in_dict: dict[str, Any])
tests/conftest.py:191
↓ 4 callersMethodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a CreateTableDefinition.
astrapy/data/info/table_descriptor/table_creation.py:265
↓ 4 callersFunctioncoerce_reranking_headers_provider
( reranking_api_key: str | RerankingHeadersProvider, )
astrapy/authentication.py:72
↓ 4 callersMethodestimated_document_count
Query the API server for an estimate of the document count in the table. Contrary to `count_documents`, this method has no filtering
astrapy/data/table.py:2682
↓ 4 callersMethodfind_available_regions
Get a list of available regions for database creation. Query the DevOps API to get a listing of all the available regions fo
astrapy/admin/admin.py:2211
↓ 4 callersMethodfrom_astra_db_admin
Create an AstraDBDatabaseAdmin from an AstraDBAdmin and an API Endpoint. Args: api_endpoint: the API Endpoint for the ta
astrapy/admin/admin.py:3382
↓ 4 callersMethodget_database_admin
Create an AstraDBDatabaseAdmin object for admin work within a certain database. The database can be specified by its API endpoint or
astrapy/admin/admin.py:1912
↓ 4 callersMethodlist_types
List all user-defined types (UDTs) in a keyspace of this database. Args: keyspace: the keyspace to be inspected. If not
astrapy/data/database.py:1905
↓ 4 callersMethodname
The name of this table. Example: >>> my_table.name 'games'
astrapy/data/table.py:652
↓ 4 callersMethodtimetuple
Convert the DataAPITimestamp into a 7-item tuple expressing the corresponding datetime in UTC, i.e. with implied "+00:00" offset.
astrapy/data_types/data_api_timestamp.py:359
↓ 4 callersMethodto_bytes
Convert the vector into its binary blob (`bytes`) representation, according to the Data API convention (including endianness).
astrapy/data_types/data_api_vector.py:124
↓ 4 callersMethodto_c_string
Convert the DataAPIDuration to a string according to the Data API "Apache Cassandra(R) notation". Returns: a str
astrapy/data_types/data_api_duration.py:201
↓ 4 callersMethodto_sync
Create a (synchronous) Database from this one. Save for the arguments explicitly provided as overrides, everything else is kept ident
astrapy/data/database.py:2529
↓ 4 callersMethodwith_default_id
Return a new collection definition object with a new setting for the collection 'default ID type'. This method is for use within the
astrapy/data/info/collection_descriptor.py:466
↓ 4 callersMethodwith_options
Create a clone of this AstraDBDatabaseAdmin with some changed attributes. Args: token: an Access Token to the database.
astrapy/admin/admin.py:3299
↓ 4 callersMethodwith_options
Create a clone of this DataAPIDatabaseAdmin with some changed attributes. Args: token: an access token with enough permi
astrapy/admin/admin.py:4486
↓ 3 callersMethod__init__
( self, *, table: Table[TRAW], request_timeout_ms: int | None, overall
astrapy/data/cursors/find_cursor.py:1578
↓ 3 callersMethod_async_can_poll
( self, *, test_db_id: str | None = None, timeout_context: _TimeoutContext,
astrapy/admin/admin.py:626
↓ 3 callersMethod_async_fetch_page
Run a query for one page and return (entries, next-page-state, response.status).
astrapy/data/cursors/query_engine.py:54
↓ 3 callersMethod_can_poll
( self, *, test_db_id: str | None = None, timeout_context: _TimeoutContext,
astrapy/admin/admin.py:604
↓ 3 callersMethod_copy
( self, *, token: str | TokenProvider | UnsetType = _UNSET, api_options: APIOp
astrapy/client.py:152
↓ 3 callersMethod_copy
( self, *, token: str | TokenProvider | UnsetType = _UNSET, api_options: APIOp
astrapy/admin/admin.py:558
↓ 3 callersMethod_copy
( self, *, token: str | TokenProvider | UnsetType = _UNSET, api_options: APIOp
astrapy/admin/admin.py:3280
↓ 3 callersMethod_copy
( self, *, token: str | TokenProvider | UnsetType = _UNSET, api_options: APIOp
astrapy/admin/admin.py:4468
↓ 3 callersMethod_create_generic_index
( self, i_name: str, ci_definition: dict[str, Any], ci_command: str, i
astrapy/data/table.py:676
↓ 3 callersMethod_create_generic_index
( self, i_name: str, ci_definition: dict[str, Any], ci_command: str, i
astrapy/data/table.py:3749
↓ 3 callersFunction_create_scalar_tpostprocessor
( column_type: ColumnType, options: FullSerdesOptions, )
astrapy/data/utils/table_converters.py:75
↓ 3 callersMethod_diff
(self, other: Any)
astrapy/data_types/data_api_set.py:153
↓ 3 callersMethod_fetch_page
Run a query for one page and return (entries, next-page-state, response.status).
astrapy/data/cursors/query_engine.py:44
↓ 3 callersMethod_from_dict
Create an instance of DatabaseDefinition from a dictionary such as one from the Data API. This operation, which should never
astrapy/data/info/database_info.py:480
↓ 3 callersMethod_get_api_commander
Instantiate a new APICommander based on the properties of this class and a provided keyspace. If keyspace is None, return No
astrapy/data/database.py:180
↓ 3 callersMethod_get_api_commander
Instantiate a new APICommander based on the properties of this class and a provided keyspace. If keyspace is None, return No
astrapy/data/database.py:2402
↓ 3 callersMethod_inner_desc
(self)
astrapy/data/info/database_info.py:138
↓ 3 callersMethod_list_collections_ctx
( self, *, keyspace: str | None, timeout_context: _TimeoutContext, )
astrapy/data/database.py:956
↓ 3 callersMethod_list_tables_ctx
( self, *, keyspace: str | None, timeout_context: _TimeoutContext, )
astrapy/data/database.py:1684
↓ 3 callersFunction_validate_date
(*, year: int, month: int, day: int)
astrapy/utils/date_utils.py:46
↓ 3 callersFunction_validate_time
( *, hour: int, minute: int, second: int, nanosecond: int )
astrapy/utils/date_utils.py:63
↓ 3 callersMethodadd_field
Return a new type definition object with an added field of a scalar type (i.e. not a list, set or other composite type). This
astrapy/data/info/table_descriptor/type_creation.py:158
↓ 3 callersMethodadd_list_column
Return a new table definition object with an added column of 'list' type. This method is for use within the fluent interface
astrapy/data/info/table_descriptor/table_creation.py:397
↓ 3 callersMethodadd_partition_sort
Return a new table definition object with one or more added `partition_sort` column specifications. This method is for use within the
astrapy/data/info/table_descriptor/table_creation.py:598
↓ 3 callersMethodas_dict
Recast this object into a dictionary. Args: name: if provided, this is the name of the database and will
astrapy/data/info/database_info.py:451
↓ 3 callersMethodas_dict
Recast this object into a dictionary.
astrapy/data/info/collection_descriptor.py:343
↓ 3 callersFunctionasync_fetch_database_info
Fetch database information through the DevOps API. Async version of the function, for use in an asyncio context. Args: api_endpo
astrapy/admin/admin.py:377
↓ 3 callersMethodasync_find_available_regions
Get a list of available regions for database creation. Async version of the method, for use in an asyncio context. Query th
astrapy/admin/admin.py:2300
↓ 3 callersFunctionbytes_to_floats
Convert a binary blob into a list of floats according to the Data API's conventions. Args: byte_blob: binary object encoding a list
astrapy/data_types/data_api_vector.py:51
↓ 3 callersMethodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a ListTableDefinition.
astrapy/data/info/table_descriptor/table_listing.py:109
↓ 3 callersMethodcoerce
(cls: type[AYO], raw_input: AYO | dict[str, Any])
astrapy/data/info/table_descriptor/type_altering.py:91
← previousnext →201–300 of 2,040, ranked by callers