My favorites | Sign in
Project Logo
                
Code license: New BSD License
Labels: python, oracle, database
Show all Featured downloads:
orapig-1.1.tar.gz
People details
Project owners:
  marhar
Project committers:
snowtigger, MarkRoddy

OraPIG generates Python wrapper classes for Oracle PL/SQL packages.

Full docs: http://www.markharrison.net/orapig

This package:

  create or replace package tiny
  --+ this is a tiny package
  as
      --+ p is the only procedure
      procedure p(x in number);
  end tiny;

creates this class:

  class Tiny:
      """this is a tiny package"""  # from --+ docstring
      def __init__(self,curs):      # instantiate class with a cursor
          ...
      def p(self,x):                # call procedure tiny.p(x)
          """p is the only procedure"""
          ...

which can be used like this:

  curs = conn.cursor()
  mytiny = tiny.Tiny(curs)
  mytiny.p(2)           # call a procedure
  curs.commit()         # not done automatically








Hosted by Google Code