malloydata / malloy

Malloy is an experimental language for describing data relationships and transformations.
http://www.malloydata.dev
MIT License
1.99k stars 76 forks source link

Language APIs (python) #880

Open danfrankj opened 2 years ago

danfrankj commented 2 years ago

Very intrigued by malloy, but we'd need a way to integrate malloy models & queries into our existing workflows.

In particular we'd need something like


import malloy 

malloy.register(... models ... ) # tell malloy about an existing semantic layer

df = malloy.query(pyprql) # results to a dataframe to be used elsewhere 

sql = malloy.render(...) # results to sql string.

Curious if any of this is on your roadmap?

anikaks commented 2 years ago

Hey @danfrankj we very much want to help you integrate Malloy into your workflows, and are actually currently working on a Python API! I don't have specific implementation details ready yet, but stay tuned :)

danfrankj commented 2 years ago

Awesome! Thanks @anikaks and will keep my eye on this ticket and your releases.

zurferr commented 1 year ago

Also interested in that. I'd like to use it in an existing python project, but am not familiar with typescript and while the vs demo is nice, a python package would be awesome.