Repackage pymongo to make it more pythonic
Project description
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
- 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.1.0.tar.gz
(14.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mongo_pythonic-0.1.0.tar.gz.
File metadata
- Download URL: mongo_pythonic-0.1.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267f9865a70a21bc2cce815483a3828d79f996665bad47ec6552c3d1ef0c9526
|
|
| MD5 |
9ad3847726d7c7b77b2d2e8b41f2ff1f
|
|
| BLAKE2b-256 |
2aef1470ad5d1daf49feeead3fc1bda90b436d66628891d97934432ad66c59ee
|
File details
Details for the file mongo_pythonic-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: mongo_pythonic-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad70cde3a9f105e67068be0974cc626d94c6b3439e7764e6b677a4f1a67e9a5e
|
|
| MD5 |
77d75f2492116a135e335b706d7b34ee
|
|
| BLAKE2b-256 |
bce2bf0d3901b1270f5e644bcbec47138a0e346c45c0900f0e58c1e857694e24
|