Skip to main content

Simple MongoDB Models

Project description

https://secure.travis-ci.org/dirn/Simon.png?branch=develop

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.6.0.tar.gz (64.7 kB view details)

Uploaded Source

File details

Details for the file Simon-0.6.0.tar.gz.

File metadata

  • Download URL: Simon-0.6.0.tar.gz
  • Upload date:
  • Size: 64.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Simon-0.6.0.tar.gz
Algorithm Hash digest
SHA256 988baff6db1905b61022db0bc813199722b5c1d698866eadd24bed4e23d6d0fd
MD5 a29454a753f1d298a0dab482f9d33589
BLAKE2b-256 00faa42de57b083dbadb10305dd0f284dbd46f31c2f8c6d563b49c4e6c8e237d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page