RQL (Resource query language) is designed for modern application development. It is built for the web, ready for NoSQL, and highly extensible with simple syntax. This is a query language fast and convenient database interaction. RQL was designed for use in URLs to request object-style data structures.
This library is a Django-Mongoengine specific implementation of RQL filtering.
Django Mongoengine RQL can be installed from pypi.org using pip:
$ pip install django-mongoengine-rql
Due to implementation and Mongo engine features there may be some limitations in filtering, for example:
distinctsetting is not supported for filters- annotations are not supported, as well
- Python 3.8+
- Install dependencies
pip install poetry && poetry install
- Python 3.8+
- Install dependencies
pip install poetry && poetry install
Check code style: poetry run flake8
Run tests: poetry run pytest
Tests reports are generated in tests/reports.
out.xml- JUnit test resultscoverage.xml- Coverage xml results
To generate HTML coverage reports use:
--cov-report html:tests/reports/cov_html
Django Mongoengine RQL is released under the Apache License Version 2.0.