djorm-ext-pool 0.8.2

DB-API2 connection pool for Django (for postgresql, mysql and sqlite)

DB-API2 connection poolling for Django.

Description

Is a simple application that uses the excellent SQLAlchemy connection pool to incorporate a it to django. All work is based on https://github.com/kennethreitz/django-postgrespool/

Note: currently only been tested with postgresql, but in theory it should work perfectly with mysql and sqlite3.

How to install

Run python setup.py install to install, or place djorm_pool on your Python path.

You can also install it with: pip install djorm-ext-pool

How use it?

Very simple, put djorm_pool in your INSTALLED_APPS settings:

# settings.py

INSTALLED_APPS = (
    'djorm_pool',
    ...
)

You can add options to sqlalchemy connection pool adding them in the settings "DJORM_POOL_OPTIONS".

Example:

DJORM_POOL_OPTIONS = {
    "pool_size": 20,
    "max_overflow": 0,
    "recycle": 3600, # the default value
}

Also, can activate the pessimistic connection handling with DJORM_POOL_PESSIMISTIC:

# With this settings, every checkout of a connection from a pool
# executes an additional query for check the connection state.
DJORM_POOL_PESSIMISTIC = True
BSD

Author

Andrey Antukh

Pip

djorm-ext-pool==0.8.2

Classifiers

  • Topic :: Internet :: WWW/HTTP
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Development Status :: 5 - Production/Stable
File Type Python Version Uploaded On Downloads
djorm-ext-pool-0.8.2.tar.gz Source June 14, 2014 1,473
Version Release Date
0.8.2 June 14, 2014
0.8.1 Jan. 4, 2014
0.8 June 6, 2013
0.7 April 25, 2013
0.6 Feb. 18, 2013
0.5 Dec. 19, 2012
0.4.0 Oct. 1, 2012
Date Package Version Action
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.8.2 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.4.0 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.6 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.7 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.5 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.8.1 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool 0.8 Release Created
Nov. 4, 2014, 2:07 p.m. djorm-ext-pool Package Created