cervmongo.extra subpackage

subpackage contents

cervmongo.extra.convenience submodule

cervmongo.extra.convenience.quick_load_client(host=None, port=None, database='test_db', collection='test_col', replica_set=None, async_=False)[source]

Returns CollectionClient instance

Parameters
  • host (Optional[str]) –

  • port (Optional[int]) –

  • database (str) –

  • collection (str) –

  • replica_set (Optional[str]) –

  • async_ (bool) –

cervmongo.extra.datatables submodule

class cervmongo.extra.datatables.DataTablesServer(request, columns, index, db, collection)[source]

Bases: object

output_result()[source]
run_queries()[source]
filtering()[source]
sorting()[source]
paging()[source]

cervmongo.extra.examples submodule

cervmongo.extra.examples.generate_custom_sync_doc(name, unique_id=None)[source]
Parameters
  • name (str) –

  • unique_id (Optional[str]) –

cervmongo.extra.examples.generate_custom_async_doc()[source]