views-query-planning

Generate queries for relational databases


License
MIT
Install
pip install views-query-planning==1.3.1

Documentation

Views Query Planning

This package exposes a class views_query_planning.QueryComposer that makes it possible to generate queries against a relational database using a network representation of the database. Such networks can be inferred using the views_query_planning.join_network function that takes a dictionary of sqlalchemy tables and returns a networkx.DiGraph that can be passed to the composer.

For an example service that uses the QueryComposer class to expose columns in a relational DB RESTfully, see base_data_retriever.