for any info/changes follow me: @nickmilon

mongoUtils.examples module

some examples

example_001:
Usage:
>>> example = Examples(); example.ex001()
>>> res = example.ex001(1)
stage#=  1...
stage#=  2...
class mongoUtils.examples.Examples[source]

Bases: object

__init__()[source]
classmethod random_date(start, end)[source]
classmethod ex001_insertdocs(n_docs)[source]

inserts test docs to collection

classmethod ex001_aggregate(print_n=2)[source]

performs aggregation and prints results of each stage in pipeline

classmethod ex001(print_n=10)[source]