middlestorm 0.4
Middleware and support tools for use Storm ORM in WSGI applications
Latest Version: 0.7.1
Package enable to use Storm ORM as DB interface in WSGI applications. Also gives tools for efficient models unit-testing.
Contains:
MiddleStorm - WSGI middleware. Add thread safe Store object into environ dictonary.
middlestorm - WSGI middleware decorator.
SingleConn - Storm Database object proxy. Make single database connection. Useful for "readonly" applications.
ModelTestCase - A base class for modes unit-testing. Give easy way for "fixture" definition.
Typical Use-Case (WSGI)
from wsgiref.simple_server import make_server
from middlestorm import MiddleStorm
from storm.database import create_database
def storm_app(environ, start_response):
# thread safe Store object instance
store = environ['storm.store']
# application logic
...
#create database
db = create_database('postgres://user:password@host/base')
# create middleware for database access
app = MiddleStorm(storm_app, db)
make_server('', 8000, app).serve_forever()
read more... (unit-testing, fixtures, pylons integration)
- Author: Vsevolod Balashov <vsevolod at balashov name>
- Home Page: http://vsevolod.balashov.name/middlestorm/
- Download URL: http://vsevolod.balashov.name/download/middlestorm/
- Keywords: wsgi middleware storm orm dbms db postgres mysql sqlite web www test testing fixtures unittest decorator
- License: LGPL 2.1
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Intended Audience :: Developers
- License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Database :: Front-Ends
- Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: sevkin
- DOAP record: middlestorm-0.4.xml
Log in to rate this package.
