pypi / astrapy
astrapy
What changed in astrapy 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-31.
3 breaking9 deprecations8 new APIs and options1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initastrapy 224 changes
Breaking changes 3
Calling has_next on an IDLE cursor activates it, and it may close the cursor when no next items are detected.
Python 3.9 is no longer supported; supported versions are 3.10 to 3.14.
The deprecated alias for name was removed from AstraDBAdminDatabaseRegionInfo and AstraDBAvailableRegionInfo.
Deprecations 9
The old CollectionDefinition set_* methods remain available as deprecated aliases, scheduled for removal in 3.0.0.
Renamed the CollectionDefinition fluent method from set_default_id to with_default_id; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_indexing to with_indexing; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_lexical to with_lexical; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_rerank to with_rerank; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_vector_dimension to with_vector_dimension; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_vector_metric to with_vector_metric; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_vector_service to with_vector_service; the old method remains as a deprecated alias.
Renamed the CollectionDefinition fluent method from set_vector_source_model to with_vector_source_model; the old method remains as a deprecated alias.
New APIs and options 8
AstraDBAdmin.create_database accepts db_type="non_vector" in DatabaseDefinition to create a non-vector database.
Added the ca_cert_path parameter to support custom CA certificates in PEM format.
The method accepts a DatabaseDefinition parameter and supports PCU group ID, tier, database type, and capacity units; it validates a provided PCU Group ID before proceeding.
The method call now supports the Reranker Override feature.
Added synchronous and asynchronous methods for listing PCU Groups.
Added a descriptor class for PCU Groups.
Added a descriptor class for PCU Group types.
Added a descriptor class for PCU Group type details.
Behavior and default changes 1
The method now handles PCU Type information in its response.
Fixes and other changes 3
Adds support for Python 3.15.
The dimension parameter is optional, which is useful when using this class in a Table.alter invocation.
Fixed normalization of empty or null indexing targets.