You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-astrapy-2.0.1-1.lbn36.noarch

python3-astrapy-2.0.1-1.lbn36.noarch

Package Attributes
RPM  python3-astrapy-2.0.1-1.lbn36.noarch.rpm Architecture  noarch Size  2843494 Created  2025/05/19 12:49:45 UTC
Package Specification
Summary AstraPy is a Pythonic SDK for DataStax Astra and its Data API
Group Unspecified
License ZPL
Home Page https://pypi.org/project/astrapy
Description

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"

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
(python3.10dist(httpx) < 1~~ with python3.10dist(httpx) >= 0.25.2)  
(python3.10dist(deprecation) < 2.2~~ with python3.10dist(deprecation) >= 2.1)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
rpmlib(TildeInVersions)  
(python3.10dist(toml) < 0.11~~ with python3.10dist(toml) >= 0.10.2)  
(python3.10dist(httpx[http2]) < 1~~ with python3.10dist(httpx[http2]) >= 0.25.2)  
Provides
python-astrapy
python3-astrapy
python3.10-astrapy
python3.10dist(astrapy)
python3dist(astrapy)
Obsoletes
python-astrapy

Document Actions