datastax / astrapy

AstraPy is a Pythonic interface for DataStax Astra DB and the Data API
https://github.com/datastax/astrapy
Apache License 2.0
21 stars 20 forks source link

Cleanup/improve __repr__ of several classes #307

Closed hemidactylus closed 1 month ago

hemidactylus commented 1 month ago

A better way to redact (partially/totally) the secrets (tokens, api keys etc) from the string repr of several objects.

A more streamlined way to achieve the above

A better error if environment is not allowed for AstraDBAdmin.

A better, manually-curated representation of most dataclasses (info.py and results.py), that leaves the "raw response" bit just hinted if present instead of printing it in a way that pollutes the visual result.