AstraPy is a Pythonic SDK for DataStax Astra and its Data API

AstraPy A pythonic client for DataStax Astra DB. This README targets AstraPy version 1.0.0+, which introduces a whole new API. Click here for the pre-existing API (fully compatible with newer versions). Quickstart Install with pip install astrapy. Get the API Endpoint and the Token to your Astra DB instance at astra.datastax.com. Try the following code after replacing the connection parameters: import astrapy ASTRA_DB_APPLICATION_TOKEN = "AstraCS:..." ASTRA_DB_API_ENDPOINT = "https:/01234567-....apps.astra.datastax.com" my_client = astrapy.DataAPIClient() my_database = my_client.get_database( ASTRA_DB_API_ENDPOINT, token=ASTRA_DB_APPLICATION_TOKEN, ) my_collection = my_database.create_collection( "dreams", dimension=3, metric=astrapy.constants.VectorMetric.COSINE, ) my_collection.insert_one({"summary": "I was flying", "$vector": [-0.4, 0.7, 0]}) my_collection.insert_many( [ { "_id": astrapy.ids.UUID("018e65c9-e33d-749b-9386-e848739582f0"
RPM
python3-astrapy-2.0.1-1.lbn42.noarch.rpm
Summary
AstraPy is a Pythonic SDK for DataStax Astra and its Data API
URL
https://pypi.org/project/astrapy
Group
Unspecified
License
ZPL
Source
python-astrapy-2.0.1-1.lbn42.src.rpm
Checksum
2dddcee4dcbbf982403bd55aab2b0d443427192b7e1ee68caf5bb39c64ac6c86
Build Date
2025/09/20 20:46:57
Requires
python3.13dist(pymongo) >= 3
python3.13dist(typing-extensions) >= 4
python3.13dist(uuid6) >= 2024.1.12
Provides
python-astrapy = 2.0.1-1.lbn42
python3-astrapy = 2.0.1-1.lbn42
python3.13-astrapy = 2.0.1-1.lbn42
python3.13dist(astrapy) = 2.0.1
python3dist(astrapy) = 2.0.1
Obsoletes