snowflake.snowpark.Session.get_current_account¶
- Session.get_current_account() Optional[str][source]¶
Returns the name of the current account for the Python connector session attached to this session.
The value comes from the attached connection; it isn’t a database or schema name. The returned string depends on the connection’s account configuration. It can be
Noneif that parameter isn’t available.Example:
Use
accountwhen you need the account configured for an existing session, rather than creating a new connection to inspect it.