Simple MongoDB Models
Project description
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.
Getting Started
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 = 'simon@example.com' user.save()
Full documentation can be found on Read the Docs.
Installation
Installing Simon is easy:
pip install Simon
or download the source and run:
python setup.py install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Simon-0.7.0.tar.gz
.
File metadata
- Download URL: Simon-0.7.0.tar.gz
- Upload date:
- Size: 66.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fceff493b6a9d52b934e3540b06103fab4c5bd0f67ba0c00a4014d31cb879446 |
|
MD5 | 5e63ab6fd7902ef3a481dcbee8462227 |
|
BLAKE2b-256 | e1fb3a9028e48401d45c8678298871f717c7e4d46e40e0337ad25ff12003e674 |
File details
Details for the file Simon-0.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: Simon-0.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821109e77656b1432e43431cc0a5300feef43d07fca06f2699186163a4cae357 |
|
MD5 | af956230761292253307ae2b0dfbdc2e |
|
BLAKE2b-256 | e22fe6cce5b9be0b6aecf9e069b732db0b55277c33e5c29b64ac0c03699e077a |