Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Mongoengine Pyramid extension based in flask-mongoengine

Project description

# Pyramid Mongoengine

pyramid-mongoengine package based in [flask-mongoengine](

## README In Progress

## Install

pip install pyramid-mongoengine

## Config

Basic setup

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



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


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

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

## Creating models


from pyramid_mongoengine import MongoEngine

db = MongoEngine()

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


See [demo]( application to examples

## Support on Beerpay
Hey dude! Help me out for a couple of :beers:!

[![Beerpay](]( [![Beerpay](](

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid-mongoengine-0.0.9.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page