looker-open-source / pylookml

A pythonic api for automatic lookml
https://pylookml.readthedocs.io/en/latest/introduction.html
MIT License
45 stars 23 forks source link

lookml.Explore.write() support #8

Closed bryan-at-looker closed 4 years ago

bryan-at-looker commented 4 years ago

You should be able to write a file to explore_name.explore.lkml

This is failing currently

import lookml
vw = lookml.View('new-view')
ex = lookml.Explore(vw)

print(ex)
ex.write()
Traceback (most recent call last):
  File "testing.py", line 6, in <module>
    ex.write()
TypeError: 'dict' object is not callable