Skip to content

red-crown/mongo-querybuilder

Repository files navigation

RC QueryBuilder: Fluent QueryBuilder for MongoDB

The rcquerybuilder package provides a fluent api wrapper around pymongo queries.

This allows you to write and execute mongodb queries like this:

>>> from rcquerybuilder.builder import Builder
>>> qb = Builder(collection=None)
>>> qb.field('name').equals('foobar') \
...   .field('fizz').ne(None) \
...   .get_query_list()
{'name': 'foobar', 'fizz': {'$ne': None}}

Installation

To install rcquerybuilder, simply:

$ pip install rcquerybuilder

Documentation

Documentation is available at https://rcquerybuilder.readthedocs.org.

How to Contribute

  1. Fork the repository to start making your changes on the master branch (or branch off of it).
  2. Send a pull request and make sure to add yourself to AUTHORS.

About

Provides a fluent query builder api around pymongo.

Resources

License

Stars

Watchers

Forks

Packages

No packages published