Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/datastax/astrapy
/ types & classes
Types & classes
298 in github.com/datastax/astrapy
⨍
Functions
2,040
◇
Types & classes
298
↳
Endpoints
61
↓ 209 callers
Class
APIOptions
This class represents all settings that can be configured for how astrapy interacts with the API (both Data API and DevOps API). Each object
astrapy/utils/api_options.py:859
↓ 159 callers
Class
DataAPIMap
An immutable 'map-like' class that preserves the order and can employ non-hashable keys (which must support __eq__). Not designed for perform
astrapy/data_types/data_api_map.py:37
↓ 140 callers
Class
DataAPIVector
r""" A class wrapping a list of float numbers to be treated as a "vector" within the Data API. This class has the same functionalities as the
astrapy/data_types/data_api_vector.py:70
↓ 133 callers
Class
TableScalarColumnTypeDescriptor
Represents and describes a column in a Table, of scalar type, i.e. which contains a single simple value. See the docstring for class `Cr
astrapy/data/info/table_descriptor/table_columns.py:201
↓ 119 callers
Class
SerdesOptions
The group of settings for the API Options concerning serialization and deserialization of values to and from the Data API. Write-path setting
astrapy/utils/api_options.py:271
↓ 111 callers
Class
_TimeoutContext
This class encodes standardized "enriched information" attached to a timeout value to obey. This makes it possible, in case the timeout is ra
astrapy/exceptions/__init__.py:147
↓ 106 callers
Class
UnexpectedDataAPIResponseException
The Data API response is malformed in that it does not have expected field(s), or they are of the wrong type. Attributes: text:
astrapy/exceptions/data_api_exceptions.py:256
↓ 90 callers
Class
DataAPISet
An immutable 'set-like' class that preserves the order and can store non-hashable entries (entries must support __eq__). Not designed for per
astrapy/data_types/data_api_set.py:31
↓ 61 callers
Class
DataAPIClient
A client for using the Data API. This is the entry point, sitting at the top of the conceptual "client -> database -> collection" hierarchy
astrapy/client.py:44
↓ 47 callers
Class
CollectionDefinition
A structure expressing the options of a collection. See the Data API specifications for detailed specification and allowed values. Insta
astrapy/data/info/collection_descriptor.py:251
↓ 43 callers
Class
DataAPIDuration
A "duration" value, suitable for working with the "duration" table column type. Durations are an abstract notion: as such, they cannot be ma
astrapy/data_types/data_api_duration.py:31
↓ 40 callers
Class
TableIndexDescriptor
The top-level object describing a table index on a column. The hierarchical arrangement of `TableIndexDescriptor`, which contains a `Tab
astrapy/data/info/table_descriptor/table_indexes.py:666
↓ 38 callers
Class
CreateTableDefinition
A structure expressing the definition ("schema") of a table to be created through the Data API. This object is passed as the `definition` par
astrapy/data/info/table_descriptor/table_creation.py:41
↓ 37 callers
Class
Database
A Data API database. This is the object for doing database-level DML, such as creating/deleting collections, and for obtaining Collection
astrapy/data/database.py:81
↓ 35 callers
Class
TablePrimaryKeyDescriptor
Represents the part of a table definition that describes the primary key. See the docstring for class `CreateTableDefinition` for in-context
astrapy/data/info/table_descriptor/table_columns.py:740
↓ 34 callers
Class
APICommander
astrapy/utils/api_commander.py:129
↓ 34 callers
Class
DataAPIDictUDT
A `dict` subclass acting as a marker for wrapping user-defined type (UDT) data. This object behaves entirely as a regular Python `dict`.
astrapy/data_types/data_api_dict_udt.py:21
↓ 34 callers
Class
DevOpsAPIException
An exception specific to issuing requests to the DevOps API.
astrapy/exceptions/devops_api_exceptions.py:23
↓ 33 callers
Class
TableIndexOptions
An object describing the options for a table regular (non-vector) index. Both when creating indexes and retrieving index metadata from the A
astrapy/data/info/table_descriptor/table_indexes.py:41
↓ 33 callers
Class
TableValuedColumnTypeDescriptor
Represents and describes a column in a Table, of a 'valued' type that stores multiple values. This means either a list or a set of homogeneou
astrapy/data/info/table_descriptor/table_columns.py:351
↓ 33 callers
Class
TableVectorColumnTypeDescriptor
Represents and describes a column in a Table, of vector type, i.e. which contains a list of `dimension` floats that is treated specially as a
astrapy/data/info/table_descriptor/table_columns.py:265
↓ 32 callers
Class
TableIndexDefinition
An object describing a regular (non-vector) index definition, including the name of the indexed column and the index options. Attributes
astrapy/data/info/table_descriptor/table_indexes.py:322
↓ 26 callers
Class
MultiCallTimeoutManager
A helper class to keep track of timing and timeouts in a multi-call method context. Args: overall_timeout_ms: an optional max du
astrapy/exceptions/__init__.py:184
↓ 26 callers
Class
StaticTokenProvider
A "pass-through" provider that wraps a supplied literal token. Args: token: an access token for subsequent use in the client. E
astrapy/authentication.py:175
↓ 24 callers
Class
AsyncDatabase
A Data API database. This is the object for doing database-level DML, such as creating/deleting collections, and for obtaining Collection
astrapy/data/database.py:2303
↓ 23 callers
Class
TableKeyValuedColumnTypeDescriptor
Represents and describes a column in a Table, of a 'key-value' type, that stores an associative map (essentially a dict) between keys of a ce
astrapy/data/info/table_descriptor/table_columns.py:430
↓ 22 callers
Class
VectorServiceOptions
The "vector.service" component of the collection options. See the Data API specifications for allowed values. Attributes: provid
astrapy/data/info/vectorize.py:23
↓ 21 callers
Class
InvalidEnvironmentException
An operation was attempted, that is not available on the specified environment. For example, trying to get an AstraDBAdmin from a client
astrapy/exceptions/__init__.py:54
↓ 18 callers
Class
CursorException
The cursor operation cannot be invoked if a cursor is not in its pristine state (i.e. is already being consumed or is exhausted altogether).
astrapy/exceptions/data_api_exceptions.py:230
↓ 18 callers
Class
DatabaseDefinition
Represents a database definition for database creation operations (excluding the DB name). Attributes: cloud_provider: the cloud pro
astrapy/data/info/database_info.py:412
↓ 18 callers
Class
TableVectorIndexOptions
An object describing the options for a table vector index, which is the index that enables vector (ANN) search on a column. Both when cr
astrapy/data/info/table_descriptor/table_indexes.py:127
↓ 17 callers
Class
CollectionVectorOptions
The "vector" component of the collection options. See the Data API specifications for allowed values. Attributes: dimension: an
astrapy/data/info/collection_descriptor.py:88
↓ 16 callers
Class
Collection
A Data API collection, the object to interact with the Data API for unstructured (schemaless) data, especially for DDL operations. This c
astrapy/data/collection.py:130
↓ 15 callers
Class
AsyncCollection
A Data API collection, the object to interact with the Data API for unstructured (schemaless) data, especially for DDL operations. This c
astrapy/data/collection.py:3108
↓ 15 callers
Class
DataAPITime
A value expressing a time, composed of hours, minutes, seconds and nanoseconds, suitable for working with the "time" table column type.
astrapy/data_types/data_api_time.py:37
↓ 14 callers
Class
CollectionLexicalOptions
The "lexical" component of the collection options. See the Data API specifications for allowed values. Attributes: enabled: use
astrapy/data/info/collection_descriptor.py:145
↓ 13 callers
Class
NullablePlayer
A counterpart of the Player model class (see), but whose each field can be omitted and defaults to None.
tests/base/table_udt_assets.py:273
↓ 13 callers
Class
RerankServiceOptions
The "rerank.service" component of the collection options. See the Data API specifications for allowed values. Attributes: provid
astrapy/data/info/reranking.py:24
↓ 13 callers
Class
TableTextIndexDefinition
An object describing a text index definition, including the name of the indexed column and the index options. Attributes: column
astrapy/data/info/table_descriptor/table_indexes.py:466
↓ 13 callers
Class
TableTextIndexOptions
An object describing the options for a table text index, which is the index that enables lexicographical matching on a text column. Both
astrapy/data/info/table_descriptor/table_indexes.py:207
↓ 13 callers
Class
TableVectorIndexDefinition
An object describing a vector index definition, including the name of the indexed column and the index options. Attributes: colu
astrapy/data/info/table_descriptor/table_indexes.py:395
↓ 13 callers
Class
UsernamePasswordTokenProvider
A token provider encoding username/password-based authentication, as used e.g. for DSE and HCD. These are base64-encoded and concatenated
astrapy/authentication.py:209
↓ 12 callers
Class
AstraDBDatabaseAdmin
An "admin" object, able to perform administrative tasks at the keyspaces level (i.e. within a certain database), such as creating/listing/dro
astrapy/admin/admin.py:3073
↓ 12 callers
Class
CollectionDefaultIDOptions
The "defaultId" component of the collection options. See the Data API specifications for allowed values. Attributes: default_id_
astrapy/data/info/collection_descriptor.py:51
↓ 12 callers
Class
CreateTypeDefinition
A structure expressing the definition of a user-defined type( UDT) to be created through the Data API. This object is passed as the `definiti
astrapy/data/info/table_descriptor/type_creation.py:29
↓ 12 callers
Class
DataAPITimestamp
A value expressing a unambiguous timestamp, accurate to down millisecond precision, suitable for working with the "timestamp" table column ty
astrapy/data_types/data_api_timestamp.py:49
↓ 12 callers
Class
TimeoutOptions
The group of settings for the API Options concerning the configured timeouts for various kinds of API operations. All timeout values are
astrapy/utils/api_options.py:67
↓ 11 callers
Class
CollectionRerankOptions
The "rerank" component of the collection options. See the Data API specifications for allowed values. Attributes: enabled: use t
astrapy/data/info/collection_descriptor.py:198
↓ 11 callers
Class
DataAPIDatabaseAdmin
An "admin" object for non-Astra Data API environments, to perform administrative tasks at the keyspaces level such as creating/listing/droppi
astrapy/admin/admin.py:4336
↓ 10 callers
Class
AlterTypeAddFields
An object representing the alter-type operation of adding field(s), for use in the argument to the database's `alter_type()` method. Att
astrapy/data/info/table_descriptor/type_altering.py:113
↓ 10 callers
Class
TableUDTColumnDescriptor
Represents and describes a column in a Table, of a user-defined type (UDT) type, i.e. a previously-defined set of named fields, each with its
astrapy/data/info/table_descriptor/table_columns.py:524
↓ 9 callers
Class
AstraDBAdmin
An "admin" object, able to perform administrative tasks at the databases level, such as creating, listing or dropping databases. This cl
astrapy/admin/admin.py:433
↓ 8 callers
Class
CollectionUpdateResult
Class that represents the result of any update operation on a collection. Attributes: raw_results: responses from the Data API calls
astrapy/results.py:113
↓ 8 callers
Class
DataAPIErrorDescriptor
An object representing a single error, as returned from the Data API, typically with an error code, a text message and other properties.
astrapy/exceptions/error_descriptors.py:22
↓ 8 callers
Class
DevOpsAPIURLOptions
The group of settings for the API Options that determines the URL used to reach the DevOps API. This class is used to override default s
astrapy/utils/api_options.py:768
↓ 7 callers
Class
AlterTypeRenameFields
An object representing the alter-type operation of renaming field(s), for use in the argument to the database's `alter_type()` method. A
astrapy/data/info/table_descriptor/type_altering.py:181
↓ 7 callers
Class
ExtendedPlayer
An example dataclass which may be used to represent a user-defined type (UDT) such as one would define, and create on the database, with this
tests/base/table_udt_assets.py:213
↓ 7 callers
Class
Player
An example dataclass which may be used to represent a user-defined type (UDT) such as one would define, and create on the database, with this
tests/base/table_udt_assets.py:191
↓ 7 callers
Class
_TableConverterAgent
astrapy/data/utils/table_converters.py:892
↓ 6 callers
Class
AlterTableDropColumns
An object representing the alter-table operation of dropping column(s), for use as argument to the table's `alter()` method. Attributes:
astrapy/data/info/table_descriptor/table_altering.py:163
↓ 6 callers
Class
CollectionDeleteResult
Class that represents the result of delete operations on a collection. Attributes: deleted_count: number of deleted documents
astrapy/results.py:40
↓ 6 callers
Class
DataAPIURLOptions
The group of settings for the API Options that determines the URL used to reach the Data API. This class is used to override default set
astrapy/utils/api_options.py:681
↓ 6 callers
Class
EmbeddingAPIKeyHeaderProvider
A "pass-through" header provider representing the single-header (typically "X-Embedding-Api-Key") auth scheme, in use by most of the embe
astrapy/authentication.py:307
↓ 6 callers
Class
RerankingAPIKeyHeaderProvider
A "pass-through" header provider representing the single-header (typically "Reranking-Api-Key") auth scheme, for use with the (single-header)
astrapy/authentication.py:451
↓ 6 callers
Class
Table
A Data API table, the object to interact with the Data API for structured data, especially for DDL operations. This class has a synchronous i
astrapy/data/table.py:113
↓ 5 callers
Class
AsyncCollectionFindCursor
An asynchronous cursor over documents, as returned by a `find` invocation on an AsyncCollection. A cursor can be iterated over, materialized
astrapy/data/cursors/find_cursor.py:846
↓ 5 callers
Class
AsyncTable
A Data API table, the object to interact with the Data API for structured data, especially for DDL operations. This class has an asynchro
astrapy/data/table.py:3162
↓ 5 callers
Class
AsyncTableFindCursor
A synchronous cursor over rows, as returned by a `find` invocation on an AsyncTable. A cursor can be iterated over, materialized into a list,
astrapy/data/cursors/find_cursor.py:2325
↓ 5 callers
Class
CollectionFindCursor
A synchronous cursor over documents, as returned by a `find` invocation on a Collection. A cursor can be iterated over, materialized into a l
astrapy/data/cursors/find_cursor.py:46
↓ 5 callers
Class
DataAPIDate
A value expressing a date, composed of a year, a month and a day, suitable for working with the "date" table column type. This class is
astrapy/data_types/data_api_date.py:51
↓ 5 callers
Class
TableAPIIndexSupportDescriptor
Represents the additional information returned by the Data API when describing an index that has 'unsupported' status. Unsupported indexes ma
astrapy/data/info/table_descriptor/table_indexes.py:537
↓ 5 callers
Class
TableFindCursor
A synchronous cursor over rows, as returned by a `find` invocation on a Table. A cursor can be iterated over, materialized into a list, a
astrapy/data/cursors/find_cursor.py:1528
↓ 5 callers
Class
TableUnsupportedIndexDefinition
An object describing the definition of an unsupported index found on a table, including the name of the indexed column and the index support
astrapy/data/info/table_descriptor/table_indexes.py:597
↓ 4 callers
Class
AlterTableAddColumns
An object representing the alter-table operation of adding column(s), for use as argument to the table's `alter()` method. Attributes:
astrapy/data/info/table_descriptor/table_altering.py:100
↓ 4 callers
Class
AlterTableDropVectorize
An object representing the alter-table operation of removing the vectorize service (i.e. the server-side embedding computation) from one or m
astrapy/data/info/table_descriptor/table_altering.py:297
↓ 4 callers
Class
AsyncCollectionFindAndRerankCursor
An asynchronous cursor over documents, as returned by a `find_and_rerank` invocation on an AsyncCollection. A cursor can be iterated over, ma
astrapy/data/cursors/farr_cursor.py:943
↓ 4 callers
Class
CollectionFindAndRerankCursor
A synchronous cursor over documents, as returned by a `find_and_rerank` invocation on a Collection. A cursor can be iterated over, materializ
astrapy/data/cursors/farr_cursor.py:46
↓ 4 callers
Class
CollectionInsertManyException
An exception occurring within an insert_many (an operation that can span several requests). As such, it represents both the root error(s) tha
astrapy/exceptions/collection_exceptions.py:59
↓ 4 callers
Class
CollectionInsertManyResult
Class that represents the result of insert_many operations on a collection. Attributes: raw_results: responses from the Data API cal
astrapy/results.py:84
↓ 4 callers
Class
DataAPIWarningDescriptor
An object representing a single warning, as returned from the Data API, typically with a code, a text message and other properties. This
astrapy/exceptions/error_descriptors.py:126
↓ 4 callers
Class
FindPage
A whole pageful of results from a find operation. This object represents the form taken by the returned items when using the pagination inter
astrapy/data/cursors/pagination.py:25
↓ 4 callers
Class
ObservableResponse
An event representing a response received by the Data API, whose body is captured exactly as is sent by the Data API. Attributes:
astrapy/event_observers/events.py:139
↓ 4 callers
Class
ParsedAPIEndpoint
The results of successfully parsing an Astra DB API endpoint, for internal by database metadata-related functions. Attributes: d
astrapy/admin/endpoints.py:46
↓ 4 callers
Class
TableInsertManyException
An exception occurring within an insert_many (an operation that can span several requests). As such, it represents both the root error(s) tha
astrapy/exceptions/table_exceptions.py:49
↓ 4 callers
Class
TableInsertManyResult
Class that represents the result of insert_many operations on a collection. Attributes: raw_results: responses from the Data API cal
astrapy/results.py:163
↓ 4 callers
Class
TooManyDocumentsToCountException
A `count_documents()` operation on a collection failed because the resulting number of documents exceeded either the upper bound set by the c
astrapy/exceptions/collection_exceptions.py:31
↓ 4 callers
Class
TooManyRowsToCountException
A `count_documents()` operation on a table failed because of the excessive amount of rows to count. Attributes: text: a text mes
astrapy/exceptions/table_exceptions.py:25
↓ 4 callers
Class
UnitExtendedPlayer
An example dataclass which may be used to represent a user-defined type (UDT) such as one would define, and create on the database, with this
tests/base/table_udt_assets.py:245
↓ 4 callers
Class
UnitNullableRequiringPlayer
A counterpart of the Player model class (see), but: 1. whose each field admit None, while still being mandatory; 2. with a field whose "f
tests/base/table_udt_assets.py:284
↓ 3 callers
Class
AWSEmbeddingHeadersProvider
A header provider representing the two-header auth scheme in use by the Amazon Web Services (e.g. AWS Bedrock) when using header-based au
astrapy/authentication.py:371
↓ 3 callers
Class
FullDevOpsAPIURLOptions
The group of settings for the API Options that determines the URL used to reach the DevOps API. This is the "full" version of the class,
astrapy/utils/api_options.py:795
↓ 3 callers
Class
ObservableRequest
An event representing a request being sent, captured with its payload exactly as will be sent to the API. Attributes: event_type
astrapy/event_observers/events.py:97
↓ 3 callers
Class
PCUGroupDescriptor
Represents the descriptor for a PCU (Provisioned Capacity Unit) group, such as the ones returned when querying the DevOps API for PCU groups.
astrapy/data/info/database_info.py:683
↓ 3 callers
Class
PCUGroupTypeDescriptor
Represents a PCU (Provisioned Capacity Unit) group type descriptor, describing a specific PCU configuration available in a region. Attri
astrapy/data/info/database_info.py:606
↓ 3 callers
Class
PCUGroupTypeDetailsDescriptor
Represents the details of a PCU (Provisioned Capacity Unit) group type, describing the hardware specifications for a particular PCU configura
astrapy/data/info/database_info.py:537
↓ 2 callers
Class
AlterTableAddVectorize
An object representing the alter-table operation of enabling the vectorize service (i.e. server-side embedding computation) on one or more co
astrapy/data/info/table_descriptor/table_altering.py:216
↓ 2 callers
Class
AstraDBDatabaseInfo
A class representing the information of an Astra DB database, including region details. This is the type of the response from the Database `i
astrapy/data/info/database_info.py:151
↓ 2 callers
Class
CollectionDeleteManyException
An exception occurring during a delete_many (an operation that can span several requests). As such, besides information on the root-cause err
astrapy/exceptions/collection_exceptions.py:94
↓ 2 callers
Class
CollectionInfo
Represents the identifying information for a collection, including the information about the database the collection belongs to. Attribu
astrapy/data/info/collection_descriptor.py:31
↓ 2 callers
Class
CollectionInsertOneResult
Class that represents the result of insert_one operations on a collection. Attributes: raw_results: one-item list with the response
astrapy/results.py:63
next →
1–100 of 298, ranked by callers