Skip to main content

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)

Metadata

Release files for mongo-dynamic-models 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongo-dynamic-models 1.0.1
File Size Uploaded
mongo_dynamic_models-1.0.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mongo-dynamic-models 1.0.1
File Interpreter ABI Platform
mongo_dynamic_models-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / mongo_dynamic_models-1.0.1.tar.gz

Download URL mongo_dynamic_models-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
07fd8a1f84c849b22743755d50fc689d3c4d09cce74ccaf00e037800596f95ed
BLAKE2b-256 checksum
How to use checksums
3e15dcf5bd9ba6d4cc3c0316021cc80871665d776092761c00fd60e95968528d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3

Release files / mongo_dynamic_models-1.0.1-py3-none-any.whl

Download URL mongo_dynamic_models-1.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41254ee12540e25ae474a74c0292692ff8d88e35b9aa8460708039e9cdc477a6
BLAKE2b-256 checksum
How to use checksums
279365e866eb7000f065d5c46b5cd5c3ef4e599fa8591453c4c81c4cdb6b773b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page