Simple MongoDB Models
Note About Releases
Simon is not yet considered production-ready. While I will do my best to maintain backward compatibility between now and version 1.0, I cannot guarantee it will happen.
The original development releases may eventually be pulled from Read the Docs and PyPI. You are encouraged to keep your version up-to-date until the release of 1.0 to avoid running into problems.
Define a model:
from simon import Model class User(Model): """A model to represent users"""
Connect to a database:
from simon.connection import connect connect('localhost', name='simon')
And start using it:
User.create(name='Simon') user = User.get(name='Simon') user.email = 'firstname.lastname@example.org' user.save()
Full documentation can be found on Read the Docs.
Installing Simon is easy:
pip install Simon
or download the source and run:
python setup.py install
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size Simon-0.7.0-py2.py3-none-any.whl (33.9 kB)||File type Wheel||Python version 3.3||Upload date||Hashes View|
|Filename, size Simon-0.7.0.tar.gz (66.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for Simon-0.7.0-py2.py3-none-any.whl