This project contains one (main) file, model.py
which contains one class of use: Model
.
Additional files person.py
and model_test.py
are for sample usage of this Model class.
This is simplistic pymongo-dependant Model for Modeling DB data structures in Python with PyMongo.
The purpose of this file is to advance my knowledge in Python (as of initial commit this is my first week of Python) and simplify some upcoming work in the 10gen Mongo for Developers course (M101) at education.10gen.com.
Feel free to fork and make pull requests and critique my work. If I've done something wrong or improperly I'm willing to learn more about what I've done.
Additional files person.py
and model_test.py
are for sample usage of this Model class.
I realize that DB Modeling is done in other Python libraries (such as Django) but chose to do this for the project encompassing the M101 course at education.10gen.com. Ideally, I will be able to use this in the project for the course along with bottle.py and pymongo.py which are the two libraries the course is based around.
This project is licensed under the MIT License
Copyright (c) 2012 Brandon Buck
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.