csdl library lets you write CSDL inside Python.
This project is incomplete and not actively maintained, and is not supported by DataSift.
Thw following python script...
from csdl import interaction, twitter, Definition print (interaction.type == "twitter") & (twitter.user.name == "borntyping")
...results in this output.
interaction.type == "twitter" AND twitter.user.name == "borntyping"
Install using pip:
pip install csdl-unoffical