unstale

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 init

@unstale/cli 0.2.9 on npm

astrapy 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.

    2.3.0release notes

  • Python 3.9 is no longer supported; supported versions are 3.10 to 3.14.

    2.3.0release notes

  • The deprecated alias for name was removed from AstraDBAdminDatabaseRegionInfo and AstraDBAvailableRegionInfo.

    2.3.0release notes

Deprecations 9

  • The old CollectionDefinition set_* methods remain available as deprecated aliases, scheduled for removal in 3.0.0.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_default_id to with_default_id; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_indexing to with_indexing; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_lexical to with_lexical; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_rerank to with_rerank; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_vector_dimension to with_vector_dimension; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_vector_metric to with_vector_metric; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_vector_service to with_vector_service; the old method remains as a deprecated alias.

    2.3.0release notes

  • Renamed the CollectionDefinition fluent method from set_vector_source_model to with_vector_source_model; the old method remains as a deprecated alias.

    2.3.0release notes

New APIs and options 8

  • AstraDBAdmin.create_database accepts db_type="non_vector" in DatabaseDefinition to create a non-vector database.

    2.3.1release notes

  • Added the ca_cert_path parameter to support custom CA certificates in PEM format.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • The method call now supports the Reranker Override feature.

    2.3.0release notes

  • Added synchronous and asynchronous methods for listing PCU Groups.

    2.3.0release notes

  • Added a descriptor class for PCU Groups.

    2.3.0release notes

  • Added a descriptor class for PCU Group types.

    2.3.0release notes

  • Added a descriptor class for PCU Group type details.

    2.3.0release notes

Behavior and default changes 1

  • The method now handles PCU Type information in its response.

    2.3.0release notes

Fixes and other changes 3

  • Adds support for Python 3.15.

    2.3.2release notes

  • The dimension parameter is optional, which is useful when using this class in a Table.alter invocation.

    2.3.1release notes

  • Fixed normalization of empty or null indexing targets.

    2.3.0release notes