{"library":"odata-query","title":"OData Query Parser and Transpiler","description":"A Python library for parsing OData query strings and transpiling them into SQL or other formats. Current version 0.10.0, supports Python 3.7+ (<4.0). Releases are infrequent with minor updates.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install odata-query"],"cli":null},"imports":["from odata_query import ODataQuery","from odata_query import ast"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from odata_query import ODataQuery\n\n# Parse an OData query string\nquery = ODataQuery(\"$filter=Name eq 'Alice'&$top=10&$orderby=Age desc\")\n\n# Access parsed components\nprint(query.filter)   # Name eq 'Alice'\nprint(query.top)      # 10\nprint(query.orderby)  # Age desc\n\n# Transpile to SQL (experimental)\nfrom odata_query.transpiler import SqlTranspiler\ntranspiler = SqlTranspiler()\nsql = transpiler.transpile(query)\nprint(sql)\n# Output: SELECT * FROM table WHERE Name = 'Alice' ORDER BY Age DESC LIMIT 10","lang":"python","description":"Parse an OData query string and optionally transpile to SQL.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}