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_CONNECTIONenvironment variable is used.
Examples¶
Get the Config Parser using the
VERTICAPY_CONNECTIONenvironment variable:from verticapy.connection import get_confparser get_confparser() Out[2]: <configparser.ConfigParser at 0x7fd3b4387580>
See also
get_connection_file(): Gets the VerticaPy connection file.