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.1.tar.gz
(14.5 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.1.tar.gz.
File metadata
- Download URL: mongo_pythonic-0.2.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7623853942038398260c9ee274f45e97693b1f8ab772bc6fca14d3525124baa3
|
|
| MD5 |
b43c0f9769469ae0828d6f6867259e4b
|
|
| BLAKE2b-256 |
c7977447574c9db33744014d6dd50b2553e215c468891e14a90b93ee8df557f4
|
File details
Details for the file mongo_pythonic-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: mongo_pythonic-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 14.2 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 |
52fb03ef35e063bd20910df6022c3b95dfd6e1dcbac5dd6fe822caa973e1ada2
|
|
| MD5 |
50128cb940edf372bebaec23010d17dc
|
|
| BLAKE2b-256 |
60a5e223ac6bbc72b4bc25ef114fb4d19c53bb1a8f646e7967368d9074be007d
|