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
- 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.3.tar.gz
(15.7 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.2.3.tar.gz.
File metadata
- Download URL: mongo_pythonic-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbca8b0f3d5bb23856258b95ad3a764ade716094b7232a19971c0569a58f4384
|
|
| MD5 |
019ad10aca6b5f42914dea3de4b03b32
|
|
| BLAKE2b-256 |
cf6bbee225e01bc181976dddc8ab4b2a441d8be8c1c262a1c01f91372d4dc0c4
|
File details
Details for the file mongo_pythonic-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: mongo_pythonic-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 16.9 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 |
d0957ab77d0b237d7b195f2a053bc6e045d060ade60371a54caa66f40a1e8638
|
|
| MD5 |
b0645852665b69de2829d415eba3a513
|
|
| BLAKE2b-256 |
4092ce429b7a791c0805f407e29d3a2b006ccfec7b77f81fb66f2dc6c190184c
|