just a simple mongodb orm
Project description
boxmongodb is a lightweight ORM framework for Python and MongoDB
https://github.com/ccdjh/boxmongodb
pip install (ubuntu ):
sudo apt-get install mongodb sudo apt-get install python-pip sudo pip install boxmongodb
example (ubuntu):
from boxmongodb import boxmongodb
class mongoMyAnBox_counter(boxmongodb.Model):
username = boxmongodb.StringProperty()
num = boxmongodb.IntegerProperty(default="1")
def main():
a = "CcdjhMarx"
b = "1984"
m = mongoMyAnBox_counter(username=a,num=b)
m.insert()
if __name__ == '__main__':
main()
Property class:
StringProperty ,DateTimeProperty ,IntegerProperty ,LinkProperty , AuthProperty ,DictProperty ,EmailProperty
Function:
insert , update , update_id find,find_all,find_id,insert_dict,remove,remove_all,update_id_dict
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
boxmongodb-0.0.10.tar.gz
(2.9 kB
view details)
File details
Details for the file boxmongodb-0.0.10.tar.gz.
File metadata
- Download URL: boxmongodb-0.0.10.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3b4931d9545bb9d4051e11f6cbc3bee774ae9874bdbb129ff0baeadb307447
|
|
| MD5 |
2916b682e08d1d25ada28049ebdc4bc5
|
|
| BLAKE2b-256 |
86c6db2478225204c1ccb222d9b286e4dc2d9b0a7f94dae912a4c7d6dd4c94e8
|