pyramid_mongokit 0.2

Pyramid Mongokit Extension

A simple Pyramid extension that registers a mongokit connection as an attribute of the request object.

Expects MONGO_URI in os.environ.

If provided as environment variables, MONGO_DB_PREFIX will be used as prefix for any databases and MONGO_DB_NAME for database name.

Source code & example on https://github.com/hadrien/pyramid_mongokit

Changelog

Development

0.2

  • Add register decorator to register documents to mongokit and generate indexes when doing a config.scan.
  • Add an introspectable for each registered document.

0.1.1

  • Add name when registring utility to zope registry to be compatible with zope.interface==4.1.0

0.1

  • Use MongoReplicaSetClient when specified by mongo uri.
  • Mongo Session lazily opened.
  • Add config directives to register and index documents and to get mongo connection.

0.0.6

  • Read preference set to secondary preferred by default at construct time.

0.0.5

  • Break compatibility with 0.0.4 as register_document does not generate indexes anymore.
  • Add generate_index function.
  • Break apart Connection classes: MongoConnection`` is not anymore tied to a single databases and ``SingleDbCOnnection is tied to a single database.
  • Add an example used for documenting and functional testing.

0.0.4

  • registering document ensures index are created.

0.0.0

  • Initial version

Author

Hadrien David

Pip

pyramid_mongokit==0.2
File Type Python Version Uploaded On Downloads
pyramid_mongokit-0.2.tar.gz Source April 8, 2014 1,219
Version Release Date
0.2 April 8, 2014
0.2-dev0 March 29, 2014
0.1.1 Feb. 6, 2014
0.1 Oct. 10, 2013
0.0.9 July 16, 2013
0.0.8 June 14, 2013
0.0.7 June 4, 2013
0.0.6 June 3, 2013
0.0.5 March 22, 2013
0.0.4 March 5, 2013
0.0.3 Jan. 11, 2013
0.0.2 Jan. 3, 2013
Date Package Version Action
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.1.1 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.8 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.9 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.2 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.1 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.2 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.2-dev0 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.3 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.6 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.7 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.4 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit 0.0.5 Release Created
April 18, 2015, 9:02 p.m. pyramid_mongokit Package Created