Simple MongoDB Models
Project description
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.2.0.tar.gz
(52.3 kB
view details)
File details
Details for the file Simon-0.2.0.tar.gz
.
File metadata
- Download URL: Simon-0.2.0.tar.gz
- Upload date:
- Size: 52.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c608a76b141ab252a608c2f0ebd5eb11c856435406253e64c745145d5d80de77 |
|
MD5 | 5e7b7eba37f546035b55c7bf58d6c81d |
|
BLAKE2b-256 | 9b32bc7d795f9c5ce8244b43ce73795714b398a82298fa8dc18a450c16978cb9 |