chimpler / pyhocon

HOCON parser for Python
Apache License 2.0
502 stars 118 forks source link

path traversal through lists #286

Open zar3bski opened 2 years ago

zar3bski commented 2 years ago

say I have the following configuration

{
  source = [
    { 
      type = mssql
      port = 1344
      tables {
        une_table360 {
          id = "UniqueID"
          view = "someview"
        }
        une_table {
          upload = false
          view = "someview"
        }
        une_autre_table {
          query = "SELECT TOP 100 FROM une_autre_table" 
          historicity = "delta"
          view = "someview"
        }
      }
    }
  ],
}

How can I access all my tables? I tried

I get a pyhocon.exceptions.ConfigException: source does not translate to a list which I find surprising