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
Simon-0.5.0.tar.gz
(59.7 kB
view details)
File details
Details for the file Simon-0.5.0.tar.gz
.
File metadata
- Download URL: Simon-0.5.0.tar.gz
- Upload date:
- Size: 59.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954df7c2becf4f6f0ade8ace8c85b8d1ffff45dcc71d121a1ab9f4efeefaa80f |
|
MD5 | d0c2f796d4f0a661d33a27d55a35455e |
|
BLAKE2b-256 | ab4e2422a772b14e4e174d9d5962f7e238c11d7e058459d83163a0b9574069ab |