SQLPython
SQLPython is a SQL command-line client designed with extensibility and personalization in mind.
Scope
SQLPython is a command line tool written in python with the following goals:
- emulate Oracle's sqlplus basic functionalities in python
- allow easy extensions to sqlplus functionalities leveraging python's class inheritance
- allow to consolidate custom sql scripts into new SQLPython commands
- allow to jump out the sql environment into python to post process query result sets
- new: sqlpython originally developed as an Oracle CLI, is being extended for more DB platforms
NEWS
- join sqlpython google group
if you want to contribute to development and testing.
- sqlpython can be installed from the cheese shop:
Author: Luca Canali
Co-author and main developer currently: Catherine Devlin
Feedback to: luca.canali -at- cern.ch,
http://canali.web.cern.ch/canali
Latest version on this wiki: 1.3.0,
ChangeLog
Current version: 1.6.5.1, May 2009 (see pipy.python.org)
How to get started (applies only to legacy version 1.3.0):
Dependencies: python 2.2 or higher, cx_Oracle, and Oracle client.
Download, untar and start with ./run (or from the python command line with 'import mysqlpy'). Click this link to download SQLpython source:
Files:
- README, description and basic instructions
- sqlpython.py - the core module, lean implementation of the main sqlplus functionalities in python
- sqlpyPlus.py - extention to sqlpython
- mysqlpy.py - Extention with custom functionality (dba-oriented) and default entry-point for sqlpython. See header file.
- run - jump-start shell script