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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mongo_dynamic_models-1.0.1.tar.gz.

File metadata

  • Download URL: mongo_dynamic_models-1.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mongo_dynamic_models-1.0.1.tar.gz
Algorithm Hash digest
SHA256 07fd8a1f84c849b22743755d50fc689d3c4d09cce74ccaf00e037800596f95ed
MD5 0c56cb9f8af3c9b5c4272a053e273624
BLAKE2b-256 3e15dcf5bd9ba6d4cc3c0316021cc80871665d776092761c00fd60e95968528d

See more details on using hashes here.

File details

Details for the file mongo_dynamic_models-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mongo_dynamic_models-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for mongo_dynamic_models-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41254ee12540e25ae474a74c0292692ff8d88e35b9aa8460708039e9cdc477a6
MD5 e66ed69f31005b223ef57f014606f958
BLAKE2b-256 279365e866eb7000f065d5c46b5cd5c3ef4e599fa8591453c4c81c4cdb6b773b

See more details on using hashes here.

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