<commit_before>=================
Flask-MongoObject
=================

**Settings:**

:MONGODB_HOST: default = 'localhost', MongoDB host name
:MONGODB_PORT: default = 27017, MongoDB port number
:MONGODB_DATABASE: default = "", MongoDB database name
:MONGODB_USERNAME: default = None. Username to connect with
:MONGODB_PASSWORD: default = None. Password to authenticate if username is provided.
:MONGODB_AUTOREF: default =  False. When set to `True` — nested objects will be saved as DbRef, elsewhere it will be saved as dictionaries.
:MONGODB_AUTOINCREMENT: default =  True. Telling MongoObject to use autoincremented integer for `_id`.
:MONGODB_FALLBACK_LANG: default = 'en'. Fallback language used with i18n definition.

**Access MongoDB from your Flask application.**

Usage:

::

  app = Flask(__name__)
  mongo = MongoObject(app)

This class also provides access to mongo Model:

::

  class Product(mongo.Model):
      structure = t.Dict({
          'title': t.String,<commit_msg>Updated markup<commit_after>=================
Flask-MongoObject
=================

**Settings:**

``MONGODB_HOST`` — default = 'localhost', MongoDB host name.

``MONGODB_PORT`` — default = 27017, MongoDB port number

``MONGODB_DATABASE`` — default = "", MongoDB database name

``MONGODB_USERNAME`` — default = None. Username to connect with

``MONGODB_PASSWORD`` — default = None. Password to authenticate if username is provided.

``MONGODB_AUTOREF`` — default =  False. When set to `True` — nested objects will be saved as DbRef, elsewhere it will be saved as dictionaries.

``MONGODB_AUTOINCREMENT`` — default =  True. Telling MongoObject to use autoincremented integer for `_id`.

``MONGODB_FALLBACK_LANG`` — default = 'en'. Fallback language used with i18n definition.


**Usage:**

::

  app = Flask(__name__)
  mongo = MongoObject(app)

This class also provides access to mongo Model:

::

  class Product(mongo.Model):
      structure = t.Dict({
          'title': t.String,
{'fraction_non_alphanumeric': 0.13523131672597866, 'fraction_numerical': 0.0071174377224199285, 'mean_word_length': 4.771260997067449, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6142591', 'n_tokens_mistral': 648, 'n_tokens_neox': 610, 'n_words': 210}