Skip to main content

Repackage pymongo to make it more pythonic

Project description

pip install mongo-pythonic

As we all know, MongoDB is a very good nosql database, but pymongo is a violent transplant from C# binding. This project repackages pymongo, making full use of dynamic type features to make MongoDB more pythonic.

Currently supported functions

  1. You can access MongoDB like using list and dict, and it takes up almost no memory.
db = pymongo.MongoClient()
list1 = mongohelper.operator.List(db["test"], "test")
list1.append({"aaa" : 123, "sadasd": "dasdas"})
list1["68026c54e4e6b28563e2bc48"]["aaa"] = 666
print(list1["68026c54e4e6b28563e2bc48"]["aaa"])
for dictionary in list1:
    print(dictionary["aaa"])

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_pythonic-0.2.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mongo_pythonic-0.2.0-py2.py3-none-any.whl (16.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mongo_pythonic-0.2.0.tar.gz.

File metadata

  • Download URL: mongo_pythonic-0.2.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mongo_pythonic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eff48486ccaa1fb5525fcd83ce1839c93711ba2998258ae9da08e552b1df0f43
MD5 80ad3f48d86adbbae8f7ab988d4dec62
BLAKE2b-256 c6c08d96368edd9c1f54ce1c1a7d234c3aafd064567a8359ed94489375e5ff3f

See more details on using hashes here.

File details

Details for the file mongo_pythonic-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mongo_pythonic-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 332b61ff4999fe52856ff6e3f1a95cad6544882b4425f39f55fe1ecc63582aa5
MD5 d0d941ca0e48cb5f94a2df5312cc4c60
BLAKE2b-256 c4fa445aa869855d1995b9e29e1dc3758165a8e7c796bce3c8ca813a9ae5a46b

See more details on using hashes here.

Supported by

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