Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/datastax/astrapy
/ functions
Functions
2,040 in github.com/datastax/astrapy
⨍
Functions
2,040
◇
Types & classes
298
↳
Endpoints
61
Method
build
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
Method
build
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
Method
builder
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
Method
builder
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
Function
check_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
Function
client
( data_api_credentials_info: DataAPICredentialsInfo, )
tests/conftest.py:263
Method
clone
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
Method
clone
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
Method
clone
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
Method
clone
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
Method
clone
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
Method
coerce
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
Method
coerce
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
Method
coerce
( raw_input: VectorServiceOptions | dict[str, Any] | None, )
astrapy/data/info/vectorize.py:76
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
coerce
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
Method
command
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
Method
command
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
Method
command
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
Method
command
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
Method
command
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
Method
concurrent_insert_chunk
( row_chunk: list[ROW], )
astrapy/data/table.py:4896
Method
concurrent_insert_chunk
( document_chunk: list[DOC], )
astrapy/data/collection.py:3950
Method
consumed
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
Method
count_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
Method
count_documents
Count the documents in the collection matching the specified filter. Args: filter: a predicate expressed as a dictionary
astrapy/data/collection.py:1875
Method
count_documents
Count the documents in the collection matching the specified filter. Args: filter: a predicate expressed as a dictionary
astrapy/data/collection.py:4754
Function
cql_session
( data_api_credentials_kwargs: DataAPICredentials, )
tests/conftest.py:302
Method
create_collection
( self, name: str, *, definition: CollectionDefinition | dict[str, Any] | None
astrapy/data/database.py:2880
Method
create_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
Method
create_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
Method
create_keyspace
Create a keyspace in the database. Args: name: the keyspace name. If supplying a keyspace that exists al
astrapy/admin/admin.py:4567
Method
create_table
( self, name: str, *, definition: CreateTableDefinition | dict[str, Any],
astrapy/data/database.py:3426
Method
create_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
Method
create_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
Method
create_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
Method
cursor_id
An integer uniquely identifying this cursor. Returns: cursor_id: an integer number uniquely identifying the cursor.
astrapy/data/cursors/cursor.py:198
Function
data_api_credentials_info
( data_api_credentials_kwargs: DataAPICredentials, )
tests/conftest.py:247
Function
data_api_credentials_kwargs
()
tests/conftest.py:204
Method
data_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
Method
data_source
The AsyncCollection object that originated this cursor through a `find_and_rerank` operation. Returns: an AsyncC
astrapy/data/cursors/farr_cursor.py:1173
Method
data_source
The Collection object that originated this cursor through a `find` operation. Returns: a Collection instance.
astrapy/data/cursors/find_cursor.py:248
Method
data_source
The AsyncCollection object that originated this cursor through a `find` operation. Returns: an AsyncCollection i
astrapy/data/cursors/find_cursor.py:1041
Method
data_source
The Table object that originated this cursor through a `find` operation. Returns: a Table instance.
astrapy/data/cursors/find_cursor.py:1730
Method
data_source
The AsyncTable object that originated this cursor through a `find` operation. Returns: an AsyncTable instance.
astrapy/data/cursors/find_cursor.py:2520
Method
database
a Database object, the database this table belongs to. Example: >>> my_table.database.name 'the_db'
astrapy/data/table.py:625
Method
database
a Database object, the database this table belongs to. Example: >>> my_async_table.database.name 'the_db'
astrapy/data/table.py:3698
Method
database
a Database object, the database this collection belongs to. Example: >>> my_coll.database.name 'the_applicat
astrapy/data/collection.py:613
Method
database
a Database object, the database this collection belongs to. Example: >>> my_async_coll.database.name 'the_db
astrapy/data/collection.py:3616
Method
default
(self, obj: object)
astrapy/utils/api_commander.py:115
Method
default
(self, obj: object)
astrapy/data/utils/table_converters.py:886
Method
definition
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
Method
delete_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
Method
delete_many
Delete all documents matching a provided filter. Args: filter: a predicate expressed as a dictionary according to the
astrapy/data/collection.py:2885
Method
delete_many
Delete all documents matching a provided filter. Args: filter: a predicate expressed as a dictionary according to the
astrapy/data/collection.py:5857
Method
delete_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
Method
delete_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
Method
delete_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
Function
deprecated_method
Decorator for a method that is a deprecated alias for method 'new_name'.
astrapy/utils/meta.py:114
Function
deprecated_property
Decorator for a @property that is a deprecated alias for attribute 'new_name'.
astrapy/utils/meta.py:107
Method
distinct
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
Method
distinct
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
Method
distinct
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
Method
docker_compose_command
(self)
tests/preprocess_env.py:176
Method
drop
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
Method
drop
Drop the collection, i.e. delete it from the database along with all the documents it contains. Args: collection
astrapy/data/collection.py:3003
Method
drop
Drop the collection, i.e. delete it from the database along with all the documents it contains. Args: collection
astrapy/data/collection.py:5982
Method
drop
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
Method
drop_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
Method
drop_keyspace
Delete a keyspace from the database, optionally waiting for the database to become active again. Args: name: the
astrapy/admin/admin.py:3872
Method
drop_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
Method
drop_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
Method
drop_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
Method
drop_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
Function
enabled_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
Method
estimated_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
Method
estimated_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
Method
estimated_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
Function
extended_player_udt
Creation (and then cleanup) of a UDT. Returns the type name.
tests/base/conftest.py:435
Method
fetch_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
Method
fetch_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
Method
fetch_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
Method
fetch_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
Method
fetch_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
Function
filled_collection
(sync_empty_collection: DefaultCollection)
tests/base/integration/collections/test_collection_cursor_sync.py:37
Function
filled_composite_atable
( async_empty_table_composite: DefaultAsyncTable, )
tests/base/integration/tables/test_table_cursor_async.py:37
Function
filled_composite_table
(sync_empty_table_composite: DefaultTable)
tests/base/integration/tables/test_table_cursor_sync.py:37
← previous
next →
1,001–1,100 of 2,040, ranked by callers