title: Orientdb python list databases?
body: <p>i am using Python to get a list of databases that were more than 30 days old. So far i have been able to get the list of the databases from <a href="https://orientdb.com/docs/3.0.x/pyorient/PyOrient-Client-DB-List.html" rel="nofollow noreferrer">here</a>. And this is my code :-</p>
  <pre><code>import pyorient
  
  def list_orient_databases(name):
      # Use a breakpoint in the code line below to debug your script.
      print(f'{name}')
      client = pyorient.OrientDB(&quot;10.121.3.55&quot;, 2525)
      session_id = client.connect(&quot;admin&quot;, &quot;admin&quot;)
      db_names = client.db_list().__getattr__('databases')
  
      db_count = 0
  
      for db_name in db_names:
          print(db_name)
  </code></pre>
  <p>How can i adjust the code to get list of databases 30 days older or more? Thanks for the help.</p>