This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Mongoengine Pyramid extension based in flask-mongoengine

Project Description
# Pyramid Mongoengine

pyramid-mongoengine package based in [flask-mongoengine](https://github.com/MongoEngine/flask-mongoengine)

## README In Progress

## Install

pip install pyramid-mongoengine

## Config

Basic setup
```python

if __name__ == "__main__":
config = Configurator()

config.include("pyramid_mongoengine")
config.add_connection_database()

```

`pyramid-mongoengine` provides `add_connection_database()`, he makes a connection with database
using data coming from .ini file.

```python

mongo_url = mongodb://my_ip_location_to_mongodb
mongodb_name = "my_db_application"

```

If theses data not exists in .ini, `pyramid-mongoengine` use default values

```python
# Default values
mongo_url = mongodb://localhost
mongodb_name = "test"
```

## Creating models

```python

from pyramid_mongoengine import MongoEngine

db = MongoEngine()

class User(db.Document):
email = db.StringField(required=True)
username = db.StringField(requred=True)

```

See [demo](https://github.com/marioidival/pyramid_mongoengine/blob/master/demos/app.py) application to examples
Release History

Release History

This version
History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

History Node

0.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyramid-mongoengine-0.0.4.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source Aug 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting