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.
pip install odata-queryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse an OData query string and optionally transpile to SQL.
Use SqlTranspiler to get WHERE, ORDER BY, LIMIT clauses, then combine with your own SELECT/FROM.
To access the parsed AST, use query.filter_ast, query.top_ast, etc. (attributes ending with _ast).
Check the documentation for the latest transpilation API. Consider contributing to the library if you rely on this.
Sanitize or limit OData query functionality before transpiling. Check the source for supported functions.