https://github.com/bbuck/learningpython
My attempts at learning the Python language by writing a Model class in preparation for upcoming assignments at education.10gen.com
https://github.com/bbuck/learningpython
Last synced: 11 months ago
JSON representation
My attempts at learning the Python language by writing a Model class in preparation for upcoming assignments at education.10gen.com
- Host: GitHub
- URL: https://github.com/bbuck/learningpython
- Owner: bbuck
- Created: 2012-10-26T07:25:42.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-26T19:42:18.000Z (over 13 years ago)
- Last Synced: 2024-04-09T17:11:49.520Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 116 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleModel
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](http://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.
## About Reinventing the Wheel
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.
# License
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.