Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install sqlahelper

How to install SQLAHelper

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install sqlahelper
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
1.0b1 Available View build log
Windows (64-bit)
1.0 Available View build log
1.0b1 Available View build log
Mac OS X (10.5+)
1.0 Available View build log
1.0b1 Available View build log
Linux (32-bit)
1.0 Available View build log
1.0b1 Available View build log
Linux (64-bit)
1.0 Available View build log
1.0b1 Available View build log
 
Author
License
MIT
Imports
Lastest release
version 1.0 on Dec 26th, 2011

SQLAHelper is a small library for SQLAlchemy web applications. It was written for Pyramid but is not framework-specific. It acts as a container for the application's contextual session, engines, and declarative base. This avoids circular dependencies between the application's model modules, and allows cooperating third-party libraries to use the session, base, and transaction.

The contextual session is initialized with the ZopeTransactionExtension so that it can be used with transaction managers. This can be disabled if desired.

It's currently tested on Python 2.7/Linux but should work on 2.5 and other platforms. A set of unit tests is included. Python 3 compatibility is unknown but will be addressed soon.

Documentation is in the 'docs' directory.

(c) 2010-2011 Mike Orr Copying and derivations permitted under the MIT license, see LICENSE.txt.

dev (unreleased)

1.0 (2011-12-25)

  • Add set_base() function and unit test.
  • Change all remaining references to pyramid_sqla to sqlahelper.
  • Delete demo application, which was for an old version of Pyramid.

1.0b1 (2011-03-11)

  • Remove engine-creation features from add_engine(). It was getting too complex to document all the permutations. You'll have to create the engine yourself and pass it to add_engine.

Repository SQLAHelper created

  • Clone repository 'SQLAHelper' from 'pyramid_sqla'.
  • Delete all non-SQLAlchemy code and docs; they've moved to the Akhet package.
  • Rename pyramid_sqla to sqlahelper and change it from a package to a module.
  • Move pyramid_sqla/tests/test.py to tests.py.

pylons_sqla-1.0rc2 (2010-02-20, never released)

  • add_static_route is now a Pyramid config method if you call the new includeme function. This is used in the application template.
  • Add pyramid_sqla as a dependency in the application template.
  • Delete websetup.py. Console scripts are more flexible than "paster setup-app".
  • Fix but that may have prevented create_db.py from finding the INI stanza.
  • 100% test coverage contributed by Chris McDonough.
  • Delete unneeded development code in static.py.
  • Set Mako's 'strict_undefined' option in the application template.

pyramid_sqla-1.0rc1 (2010-01-26)

  • 'pyramid_sqla' application template supports commit veto feature in repoze.tm2 1.0b1.
  • Add production.ini to application template.
  • Delete stray files in application template that were accidentally included.

pyramid_sqla-0.2 (2011-01-19)

  • Pyramid 1.0a10 spins off view handler support to 'pyramid_handlers' package.
  • 'pyramid_sqla' application template depends on Pyramid>=1.0a10.

pyramid_sqla-0.1 (2011-01-12)

  • Initial release.
  • Warning: a change in Pyramid 1.0a10 broke applications created using the this version's application template. To run existing applications under Pyramid 1.0a10 and later, add a 'pyramid_handlers' dependency to the requires list in setup.py and reinstall the application.

Subscribe to package updates

Last updated Dec 26th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.