Skip to main content

generate mongo models automatically with mongoengine

Project description

generate mongo models automatically with mongoengine

Installation

python -m pip install mongo-dynamic-models

Usage

from mongo_dynamic_models import MongoModels

uri = 'mongodb://USER:PASSWORD@HOST_OR_IR:PORT/DB'

models = MongoModels(uri)

print(models.collection_names)
print(models)
print(models.collection_names)
print(models.users.objects)
print(models['users'].objects)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongo_dynamic_models-1.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

mongo_dynamic_models-1.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page