semvec/pypi-packages huggingface dataset:
boxmongodb 0.0.10
just a simple mongodb orm
License: MIT License
Keywords: mongodb,db

BoxMongodb
================

boxmongodb is a lightweight ORM framework for Python and MongoDB


.. image:: http://i.v2ex.co/53fQFgQ3.gif 



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