Loading...

verticapy.connection.get_confparser#

verticapy.connection.get_confparser(dsn: str | None = None) ConfigParser#

Parses the input DSN and returns the linked Config Parser.

Parameters#

dsn: str, optional

Path to the file containing the credentials. If empty, the VERTICAPY_CONNECTION environment variable is used.

Examples#

Get the Config Parser using the VERTICAPY_CONNECTION environment variable:

from verticapy.connection import get_confparser

get_confparser()
Out[2]: <configparser.ConfigParser at 0x7f54a34cb280>

See also

get_connection_file() : Gets the VerticaPy connection file.