MCPcopy Index your code

hub / github.com/datastax/astrapy / types & classes

Types & classes298 in github.com/datastax/astrapy

↓ 209 callersClassAPIOptions
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 callersClassDataAPIMap
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 callersClassDataAPIVector
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 callersClassTableScalarColumnTypeDescriptor
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 callersClassSerdesOptions
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 callersClass_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 callersClassUnexpectedDataAPIResponseException
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 callersClassDataAPISet
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 callersClassDataAPIClient
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 callersClassCollectionDefinition
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 callersClassDataAPIDuration
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 callersClassTableIndexDescriptor
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 callersClassCreateTableDefinition
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 callersClassDatabase
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 callersClassTablePrimaryKeyDescriptor
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 callersClassAPICommander
astrapy/utils/api_commander.py:129
↓ 34 callersClassDataAPIDictUDT
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 callersClassDevOpsAPIException
An exception specific to issuing requests to the DevOps API.
astrapy/exceptions/devops_api_exceptions.py:23
↓ 33 callersClassTableIndexOptions
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 callersClassTableValuedColumnTypeDescriptor
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 callersClassTableVectorColumnTypeDescriptor
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 callersClassTableIndexDefinition
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 callersClassMultiCallTimeoutManager
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 callersClassStaticTokenProvider
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 callersClassAsyncDatabase
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 callersClassTableKeyValuedColumnTypeDescriptor
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 callersClassVectorServiceOptions
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 callersClassInvalidEnvironmentException
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 callersClassCursorException
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 callersClassDatabaseDefinition
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 callersClassTableVectorIndexOptions
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 callersClassCollectionVectorOptions
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 callersClassCollection
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 callersClassAsyncCollection
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 callersClassDataAPITime
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 callersClassCollectionLexicalOptions
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 callersClassNullablePlayer
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 callersClassRerankServiceOptions
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 callersClassTableTextIndexDefinition
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 callersClassTableTextIndexOptions
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 callersClassTableVectorIndexDefinition
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 callersClassUsernamePasswordTokenProvider
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 callersClassAstraDBDatabaseAdmin
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 callersClassCollectionDefaultIDOptions
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 callersClassCreateTypeDefinition
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 callersClassDataAPITimestamp
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 callersClassTimeoutOptions
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 callersClassCollectionRerankOptions
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 callersClassDataAPIDatabaseAdmin
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 callersClassAlterTypeAddFields
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 callersClassTableUDTColumnDescriptor
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 callersClassAstraDBAdmin
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 callersClassCollectionUpdateResult
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 callersClassDataAPIErrorDescriptor
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 callersClassDevOpsAPIURLOptions
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 callersClassAlterTypeRenameFields
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 callersClassExtendedPlayer
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 callersClassPlayer
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 callersClass_TableConverterAgent
astrapy/data/utils/table_converters.py:892
↓ 6 callersClassAlterTableDropColumns
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 callersClassCollectionDeleteResult
Class that represents the result of delete operations on a collection. Attributes: deleted_count: number of deleted documents
astrapy/results.py:40
↓ 6 callersClassDataAPIURLOptions
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 callersClassEmbeddingAPIKeyHeaderProvider
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 callersClassRerankingAPIKeyHeaderProvider
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 callersClassTable
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 callersClassAsyncCollectionFindCursor
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 callersClassAsyncTable
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 callersClassAsyncTableFindCursor
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 callersClassCollectionFindCursor
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 callersClassDataAPIDate
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 callersClassTableAPIIndexSupportDescriptor
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 callersClassTableFindCursor
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 callersClassTableUnsupportedIndexDefinition
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 callersClassAlterTableAddColumns
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 callersClassAlterTableDropVectorize
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 callersClassAsyncCollectionFindAndRerankCursor
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 callersClassCollectionFindAndRerankCursor
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 callersClassCollectionInsertManyException
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 callersClassCollectionInsertManyResult
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 callersClassDataAPIWarningDescriptor
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 callersClassFindPage
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 callersClassObservableResponse
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 callersClassParsedAPIEndpoint
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 callersClassTableInsertManyException
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 callersClassTableInsertManyResult
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 callersClassTooManyDocumentsToCountException
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 callersClassTooManyRowsToCountException
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 callersClassUnitExtendedPlayer
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 callersClassUnitNullableRequiringPlayer
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 callersClassAWSEmbeddingHeadersProvider
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 callersClassFullDevOpsAPIURLOptions
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 callersClassObservableRequest
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 callersClassPCUGroupDescriptor
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 callersClassPCUGroupTypeDescriptor
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 callersClassPCUGroupTypeDetailsDescriptor
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 callersClassAlterTableAddVectorize
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 callersClassAstraDBDatabaseInfo
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 callersClassCollectionDeleteManyException
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 callersClassCollectionInfo
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 callersClassCollectionInsertOneResult
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