MCPcopy Create free account

hub / github.com/datastax/astrapy / functions

Functions2,040 in github.com/datastax/astrapy

Methodbuild
The final step in the fluent (builder) interface. Calling this method finalizes the definition that has been built so far and makes i
astrapy/data/info/table_descriptor/table_creation.py:631
Methodbuild
The final step in the fluent (builder) interface. Calling this method finalizes the definition that has been built so far and makes i
astrapy/data/info/table_descriptor/type_creation.py:190
Methodbuilder
Create an "empty" builder for constructing a table definition through a fluent interface. The resulting object has no columns and no
astrapy/data/info/table_descriptor/table_creation.py:279
Methodbuilder
Create an "empty" builder for constructing a type definition through a fluent interface. The resulting object has no fields yet: thos
astrapy/data/info/table_descriptor/type_creation.py:141
Functioncheck_deprecated_alias
Generic blueprint utility for deprecating parameters through an alias. Normalize the two aliased parameter names, raising deprecation when ne
astrapy/utils/meta.py:37
Functionclient
( data_api_credentials_info: DataAPICredentialsInfo, )
tests/conftest.py:263
Methodclone
Create a copy of this cursor with: - the same parameters (timeouts, filter, projection, etc) - and the cursor is rewound to i
astrapy/data/cursors/farr_cursor.py:299
Methodclone
Create a copy of this cursor with: - the same parameters (timeouts, filter, projection, etc) - and the cursor is rewound to i
astrapy/data/cursors/farr_cursor.py:1186
Methodclone
Create a copy of this cursor with: - the same parameters (timeouts, filter, projection, etc) - and the cursor is rewound to i
astrapy/data/cursors/find_cursor.py:260
Methodclone
Create a copy of this cursor with: - the same parameters (timeouts, filter, projection, etc) - and the cursor is rewound to i
astrapy/data/cursors/find_cursor.py:1054
Methodclone
Create a copy of this cursor with: - the same parameters (timeouts, filter, projection, etc) - and the cursor is rewound to i
astrapy/data/cursors/find_cursor.py:2532
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a CollectionDefinition.
astrapy/data/info/collection_descriptor.py:380
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a CollectionDescriptor.
astrapy/data/info/collection_descriptor.py:1211
Methodcoerce
( raw_input: VectorServiceOptions | dict[str, Any] | None, )
astrapy/data/info/vectorize.py:76
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TablePrimaryKeyDescriptor.
astrapy/data/info/table_descriptor/table_columns.py:798
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a ListTableDescriptor.
astrapy/data/info/table_descriptor/table_listing.py:181
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into an AlterTableAddColumns.
astrapy/data/info/table_descriptor/table_altering.py:148
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into an AlterTableDropColumns.
astrapy/data/info/table_descriptor/table_altering.py:201
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into an AlterTableAddVectorize.
astrapy/data/info/table_descriptor/table_altering.py:282
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into an AlterTableDropVectorize.
astrapy/data/info/table_descriptor/table_altering.py:339
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into an AlterTypeAddFields.
astrapy/data/info/table_descriptor/type_altering.py:159
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into an AlterTypeRenameFields.
astrapy/data/info/table_descriptor/type_altering.py:221
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableVectorIndexOptions.
astrapy/data/info/table_descriptor/table_indexes.py:190
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableTextIndexOptions.
astrapy/data/info/table_descriptor/table_indexes.py:261
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableIndexDefinition.
astrapy/data/info/table_descriptor/table_indexes.py:378
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableVectorIndexDefinition.
astrapy/data/info/table_descriptor/table_indexes.py:449
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableVectorIndexDefinition.
astrapy/data/info/table_descriptor/table_indexes.py:520
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableUnsupportedIndexDefinition.
astrapy/data/info/table_descriptor/table_indexes.py:650
Methodcoerce
Normalize the input, whether an object already or a plain dictionary of the right structure, into a TableIndexDescriptor.
astrapy/data/info/table_descriptor/table_indexes.py:758
Methodcommand
Send a POST request to the Data API for this database with an arbitrary, caller-provided payload. Args: body: a
astrapy/data/database.py:2130
Methodcommand
Send a POST request to the Data API for this database with an arbitrary, caller-provided payload. Args: body: a
astrapy/data/database.py:4414
Methodcommand
Send a POST request to the Data API for this table with an arbitrary, caller-provided payload. No transformations or type con
astrapy/data/table.py:6224
Methodcommand
Send a POST request to the Data API for this collection with an arbitrary, caller-provided payload. No transformations or typ
astrapy/data/collection.py:3051
Methodcommand
Send a POST request to the Data API for this collection with an arbitrary, caller-provided payload. No transformations or typ
astrapy/data/collection.py:6036
Methodconcurrent_insert_chunk
( row_chunk: list[ROW], )
astrapy/data/table.py:4896
Methodconcurrent_insert_chunk
( document_chunk: list[DOC], )
astrapy/data/collection.py:3950
Methodconsumed
The number of items the cursors has yielded, i.e. how many items have been already read by the code consuming the cursor. Re
astrapy/data/cursors/cursor.py:186
Methodcount_documents
Count the row in the table matching the specified filter. Args: filter: a predicate expressed as a dictionary according
astrapy/data/table.py:5691
Methodcount_documents
Count the documents in the collection matching the specified filter. Args: filter: a predicate expressed as a dictionary
astrapy/data/collection.py:1875
Methodcount_documents
Count the documents in the collection matching the specified filter. Args: filter: a predicate expressed as a dictionary
astrapy/data/collection.py:4754
Functioncql_session
( data_api_credentials_kwargs: DataAPICredentials, )
tests/conftest.py:302
Methodcreate_collection
( self, name: str, *, definition: CollectionDefinition | dict[str, Any] | None
astrapy/data/database.py:2880
Methodcreate_index
Create an index on a non-vector column of the table. This is a blocking operation: the method returns once the index is crea
astrapy/data/table.py:3793
Methodcreate_keyspace
Create a keyspace in this database as requested, optionally waiting for it to be ready. Args: name: the keyspace
astrapy/admin/admin.py:3602
Methodcreate_keyspace
Create a keyspace in the database. Args: name: the keyspace name. If supplying a keyspace that exists al
astrapy/admin/admin.py:4567
Methodcreate_table
( self, name: str, *, definition: CreateTableDefinition | dict[str, Any],
astrapy/data/database.py:3426
Methodcreate_text_index
Create a text index on a vector column of the table, enabling lexicographical matching operations on it. This is a blocking
astrapy/data/table.py:4045
Methodcreate_type
Creates a user-defined type (UDT) on the database. A user-defined type is scoped to a keyspace: unless otherwise specified,
astrapy/data/database.py:4039
Methodcreate_vector_index
Create a vector index on a vector column of the table, enabling vector similarity search operations on it. This is a blockin
astrapy/data/table.py:3913
Methodcursor_id
An integer uniquely identifying this cursor. Returns: cursor_id: an integer number uniquely identifying the cursor.
astrapy/data/cursors/cursor.py:198
Functiondata_api_credentials_info
( data_api_credentials_kwargs: DataAPICredentials, )
tests/conftest.py:247
Functiondata_api_credentials_kwargs
()
tests/conftest.py:204
Methoddata_source
The Collection object that originated this cursor through a `find_and_rerank` operation. Returns: a Collection i
astrapy/data/cursors/farr_cursor.py:286
Methoddata_source
The AsyncCollection object that originated this cursor through a `find_and_rerank` operation. Returns: an AsyncC
astrapy/data/cursors/farr_cursor.py:1173
Methoddata_source
The Collection object that originated this cursor through a `find` operation. Returns: a Collection instance.
astrapy/data/cursors/find_cursor.py:248
Methoddata_source
The AsyncCollection object that originated this cursor through a `find` operation. Returns: an AsyncCollection i
astrapy/data/cursors/find_cursor.py:1041
Methoddata_source
The Table object that originated this cursor through a `find` operation. Returns: a Table instance.
astrapy/data/cursors/find_cursor.py:1730
Methoddata_source
The AsyncTable object that originated this cursor through a `find` operation. Returns: an AsyncTable instance.
astrapy/data/cursors/find_cursor.py:2520
Methoddatabase
a Database object, the database this table belongs to. Example: >>> my_table.database.name 'the_db'
astrapy/data/table.py:625
Methoddatabase
a Database object, the database this table belongs to. Example: >>> my_async_table.database.name 'the_db'
astrapy/data/table.py:3698
Methoddatabase
a Database object, the database this collection belongs to. Example: >>> my_coll.database.name 'the_applicat
astrapy/data/collection.py:613
Methoddatabase
a Database object, the database this collection belongs to. Example: >>> my_async_coll.database.name 'the_db
astrapy/data/collection.py:3616
Methoddefault
(self, obj: object)
astrapy/utils/api_commander.py:115
Methoddefault
(self, obj: object)
astrapy/data/utils/table_converters.py:886
Methoddefinition
Query the Data API and return a structure defining the table schema. If there are no unsupported colums in the table, the return valu
astrapy/data/table.py:3593
Methoddelete_many
Delete all rows matching a provided filter condition. This operation can target from a single row to the entirety of the table.
astrapy/data/table.py:6056
Methoddelete_many
Delete all documents matching a provided filter. Args: filter: a predicate expressed as a dictionary according to the
astrapy/data/collection.py:2885
Methoddelete_many
Delete all documents matching a provided filter. Args: filter: a predicate expressed as a dictionary according to the
astrapy/data/collection.py:5857
Methoddelete_one
Delete a row, matching the provided value of the primary key. If no row is found with that primary key, the method does nothing.
astrapy/data/table.py:5971
Methoddelete_one
Delete one document matching a provided filter. This method never deletes more than a single document, regardless of the numb
astrapy/data/collection.py:2793
Methoddelete_one
Delete one document matching a provided filter. This method never deletes more than a single document, regardless of the numb
astrapy/data/collection.py:5759
Functiondeprecated_method
Decorator for a method that is a deprecated alias for method 'new_name'.
astrapy/utils/meta.py:114
Functiondeprecated_property
Decorator for a @property that is a deprecated alias for attribute 'new_name'.
astrapy/utils/meta.py:107
Methoddistinct
Return a list of the unique values of `key` across the rows in the table that match the provided filter. Args: k
astrapy/data/table.py:5557
Methoddistinct
Return a list of the unique values of `key` across the documents in the collection that match the provided filter. Args:
astrapy/data/collection.py:1388
Methoddistinct
Return a list of the unique values of `key` across the documents in the collection that match the provided filter. Args:
astrapy/data/collection.py:4422
Methoddocker_compose_command
(self)
tests/preprocess_env.py:176
Methoddrop
Drop the table, i.e. delete it from the database along with all the rows stored therein. Args: if_exists: if pas
astrapy/data/table.py:6154
Methoddrop
Drop the collection, i.e. delete it from the database along with all the documents it contains. Args: collection
astrapy/data/collection.py:3003
Methoddrop
Drop the collection, i.e. delete it from the database along with all the documents it contains. Args: collection
astrapy/data/collection.py:5982
Methoddrop
Drop this database, i.e. delete it completely and permanently with all its data. This method wraps the `drop_database` method of the
astrapy/admin/admin.py:4126
Methoddrop_collection
Drop a collection from the database, along with all documents therein. Args: name: the name of the collection to drop.
astrapy/data/database.py:3103
Methoddrop_keyspace
Delete a keyspace from the database, optionally waiting for the database to become active again. Args: name: the
astrapy/admin/admin.py:3872
Methoddrop_keyspace
Drop (delete) a keyspace from the database. Args: name: the keyspace to delete. If it does not exist in this database,
astrapy/admin/admin.py:4648
Methoddrop_table
Drop a table from the database, along with all rows therein and related indexes. Args: name: the name of the table to dr
astrapy/data/database.py:3819
Methoddrop_table_index
Drops (deletes) an index (of any kind) from the table it is associated to. This is a blocking operation: the method returns once the
astrapy/data/database.py:3738
Methoddrop_type
Drop a user-defined type (UDT) from the database User-defined types are scoped to a keyspace: the drop operation always targ
astrapy/data/database.py:4336
Functionenabled_vectorize_models
This actually returns a list of `_pytest.mark.structures.ParameterSet` instances, each wrapping a dict with the needed info to test the model
tests/vectorize/integration/test_vectorize_providers.py:34
Methodestimated_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:5789
Methodestimated_document_count
Query the API server for an estimate of the document count in the collection. Contrary to `count_documents`, this method has no filt
astrapy/data/collection.py:1971
Methodestimated_document_count
Query the API server for an estimate of the document count in the collection. Contrary to `count_documents`, this method has no filt
astrapy/data/collection.py:4857
Functionextended_player_udt
Creation (and then cleanup) of a UDT. Returns the type name.
tests/base/conftest.py:435
Methodfetch_next_page
Retrieve a single, whole page of results from the Data API and return it at once, together with associated "out-of-band" information.
astrapy/data/cursors/farr_cursor.py:890
Methodfetch_next_page
Retrieve a single, whole page of results from the Data API and return it at once, together with associated "out-of-band" information.
astrapy/data/cursors/farr_cursor.py:1683
Methodfetch_next_page
Retrieve a single, whole page of results from the Data API and return it at once, together with associated "out-of-band" information.
astrapy/data/cursors/find_cursor.py:770
Methodfetch_next_page
Retrieve a single, whole page of results from the Data API and return it at once, together with associated "out-of-band" information.
astrapy/data/cursors/find_cursor.py:1477
Methodfetch_next_page
Retrieve a single, whole page of results from the Data API and return it at once, together with associated "out-of-band" information.
astrapy/data/cursors/find_cursor.py:2955
Functionfilled_collection
(sync_empty_collection: DefaultCollection)
tests/base/integration/collections/test_collection_cursor_sync.py:37
Functionfilled_composite_atable
( async_empty_table_composite: DefaultAsyncTable, )
tests/base/integration/tables/test_table_cursor_async.py:37
Functionfilled_composite_table
(sync_empty_table_composite: DefaultTable)
tests/base/integration/tables/test_table_cursor_sync.py:37
← previousnext →1,001–1,100 of 2,040, ranked by callers