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 transmogrify.sqlalchemy

How to install transmogrify.sqlalchemy

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install transmogrify.sqlalchemy
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.1 Available View build log
Windows (64-bit)
1.0.1 Available View build log
Mac OS X (10.5+)
1.0.1 Available View build log
Linux (32-bit)
1.0.1 Available View build log
Linux (64-bit)
1.0.1 Available View build log
 
License
GPL
Lastest release
version 1.0.1 on Jan 5th, 2011

Introduction

This package implements a simple SQLAlchemy blueprint for collective.transmogrifier.

If you are not familiar with transmogrifier please read its documentation first to get a basic understanding of how you can use this package.

This package implements the transmogrify.sqlalchemy blueprint which executes a SQL statement, generally a query, and feeds the return values from that query into the transmogrifier pipeline.

Configuration

A transmogrify.sqlalchemy blueprint takes two or more parameters:

dsn Connection information for the SQL database. The exact format is documented in the SQLAlchemy documentation for create_engine() arguments.

query* The SQL queries that will be executed. Any parameter starting with 'query' will be executed, in sorted order.

Example

This will feed all data from the menu table in a local postgres database into the pipeline:

[sqlite]

System Message: ERROR/3 (<string>, line 34)

Inconsistent literal block quoting.

blueprint=transmogrify.sqlalchemy dsn=postgres://scott:tiger@localhost:5432/mydatabase query1=SELECT * FROM menu WHERE id=1 query2=SELECT * FROM menu WHERE id>1

Changelog

1.0.1 - 2008-09-17
  • The keys in the returned dictionary need to be normal strings.

System Message: WARNING/2 (<string>, line 51)

Bullet list ends without a blank line; unexpected unindent.

[fschulze, soerensigfusson]

1.0 - 2008-05-22
  • Initial release

System Message: WARNING/2 (<string>, line 58)

Bullet list ends without a blank line; unexpected unindent.

[wichert, mj]

Subscribe to package updates

Last updated Jan 5th, 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.