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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mongo_dynamic_models-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fd8a1f84c849b22743755d50fc689d3c4d09cce74ccaf00e037800596f95ed |
|
MD5 | 0c56cb9f8af3c9b5c4272a053e273624 |
|
BLAKE2b-256 | 3e15dcf5bd9ba6d4cc3c0316021cc80871665d776092761c00fd60e95968528d |
Close
Hashes for mongo_dynamic_models-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41254ee12540e25ae474a74c0292692ff8d88e35b9aa8460708039e9cdc477a6 |
|
MD5 | e66ed69f31005b223ef57f014606f958 |
|
BLAKE2b-256 | 279365e866eb7000f065d5c46b5cd5c3ef4e599fa8591453c4c81c4cdb6b773b |