title: How can I get a connection URL from an SQLAlchemy Engine instance?
body: <p>I begin a program by generating a <a href="http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html?highlight=url#sqlalchemy.engine.url.URL" rel="noreferrer"><code>URL</code></a> object and passing it to <a href="http://docs.sqlalchemy.org/en/rel_1_0/core/engines.html?highlight=create_engine#sqlalchemy.create_engine" rel="noreferrer"><code>create_engine</code></a>. In a section of code far, far away I would like to find out what this engine is connected to, i.e. the connection URL.</p>
  
  <p>Is there an easy way to do this? Using <a href="http://docs.sqlalchemy.org/en/rel_1_0/core/inspection.html?highlight=inspect#sqlalchemy.inspection.inspect" rel="noreferrer"><code>inspect</code></a> I can only see how to get the driver type. I can understand if the password component of a connection string was no longer available, but I'm hoping everything else is still available.</p>
  
  <p>Any ideas?</p>