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 0x7f21c0868be0>

See also

get_connection_file() : Gets the VerticaPy connection file.