Documentation suggests there is a class NoAuthClient in carto.auth module. However this yields an ImportError
ImportError: cannot import name 'NoAuthClient' from 'carto.auth'
From read-the-docs and the Readme file.
from carto.auth import NoAuthClient
I discovered the class is in pyrestcli.auth but not imported in auth.py. Until the code or documentation is corrected, the following works
from pyrestcli.auth import NoAuthClient
However it issues the following warning when using the send() method on the SQLClient in carto.sql:
UserWarning: You are using methods other than get with no authentication!!!
Maybe it is best to just use the requests module when doing read only queries on a public database?
Documentation suggests there is a class
NoAuthClientincarto.authmodule. However this yields anImportErrorFrom read-the-docs and the Readme file.
I discovered the class is in
pyrestcli.authbut not imported in auth.py. Until the code or documentation is corrected, the following worksHowever it issues the following warning when using the
send()method on theSQLClientincarto.sql:Maybe it is best to just use the
requestsmodule when doing read only queries on a public database?