dbTalk Databases Forums  

announce: OraPIG, python wrappers for Oracle

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss announce: OraPIG, python wrappers for Oracle in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mh@pixar.com
 
Posts: n/a

Default announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 03:00 AM






I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.

OraPIG generates Python wrapper classes for Oracle packages.

If you use Oracle and Python, this might be a pretty useful
package for you. Download it and let us know what
you think!

(and special thanks to everyone that helped me out with
all of my tedious data dictionary queries a while back, I
hope this package shows it wasn't a total waste of
your time!)

Cheers,
Mark

Download and docs: http://code.google.com/p/orapig

----------------

Quick Example: Suppose you have a package called tiny
with a single procedure p:

create or replace package tiny
as
procedure p(x in number);
end tiny;

OraPIG will generate a wrapper class that will allow you to
use the package without having to use the various database
calls. Instead, the wrapper class will be instantiated and
called just like any other Python class:

class Tiny:
def __init__(self,curs): # instantiate class with a cursor
...
def p(self,x): # call procedure p(x)
...

Here's how it's used:

import cx_Oracle
import tiny
conn = cx_Oracle.connect('scott/tiger')
curs = conn.cursor()

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

--
Mark Harrison
Pixar Animation Studios

Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 11:17 AM






mh (AT) pixar (DOT) com wrote:
Quote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.
And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.

You can post your commercial / promotional materials to
c.d.o.marketplace. But here all you are doing is getting
those who might be interested angry by showing us
disrespect. Your post, if allowed, invites every spammer
on the planet to post here too.

Your apology would be greatly appreciated.

Thank you.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #3  
Old   
DA Morgan
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 11:17 AM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.
And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.

You can post your commercial / promotional materials to
c.d.o.marketplace. But here all you are doing is getting
those who might be interested angry by showing us
disrespect. Your post, if allowed, invites every spammer
on the planet to post here too.

Your apology would be greatly appreciated.

Thank you.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #4  
Old   
DA Morgan
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 11:17 AM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.
And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.

You can post your commercial / promotional materials to
c.d.o.marketplace. But here all you are doing is getting
those who might be interested angry by showing us
disrespect. Your post, if allowed, invites every spammer
on the planet to post here too.

Your apology would be greatly appreciated.

Thank you.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #5  
Old   
DA Morgan
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 11:17 AM



mh (AT) pixar (DOT) com wrote:
Quote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.
And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.

You can post your commercial / promotional materials to
c.d.o.marketplace. But here all you are doing is getting
those who might be interested angry by showing us
disrespect. Your post, if allowed, invites every spammer
on the planet to post here too.

Your apology would be greatly appreciated.

Thank you.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #6  
Old   
mh@pixar.com
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 02:14 PM



DA Morgan <damorgan (AT) psoug (DOT) org> wrote:
Quote:
mh (AT) pixar (DOT) com wrote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.

And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.
Hmm, my intention in posting was just to say Thanks
to the people here (including you -- thanks again!!)
who helped me figure out the data dictionary stuff
and to let them know that I'm passing along what I've
learned from them to other people. (That's why there's
the special callout at the bottom of the message.)

I don't interpret the message as a violation of the charter,
which says in point 3

"The posting of commercial message, messages intended
to promote the sale of a product or service are expressly
forbidden in this group. Please restrict commercial messages to
comp.database.oracle.marketplace"

and in point 6

"Avoid SPAM or commercial messages"

these from: http://unixadmintalk.com/f35/cfv-com...q-post-274104/

Since the message was not a commercial message or promoting
the sale of a product or service, I didn't feel that .marketplace
was the appropriate venue. And, since I was especially trying
to say thanks to the denizens of .misc, I felt this was the
appropriate group.

Anyways, apologies all around and thanks again for the help!

--
Mark Harrison
Pixar Animation Studios


Reply With Quote
  #7  
Old   
mh@pixar.com
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 02:14 PM



DA Morgan <damorgan (AT) psoug (DOT) org> wrote:
Quote:
mh (AT) pixar (DOT) com wrote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.

And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.
Hmm, my intention in posting was just to say Thanks
to the people here (including you -- thanks again!!)
who helped me figure out the data dictionary stuff
and to let them know that I'm passing along what I've
learned from them to other people. (That's why there's
the special callout at the bottom of the message.)

I don't interpret the message as a violation of the charter,
which says in point 3

"The posting of commercial message, messages intended
to promote the sale of a product or service are expressly
forbidden in this group. Please restrict commercial messages to
comp.database.oracle.marketplace"

and in point 6

"Avoid SPAM or commercial messages"

these from: http://unixadmintalk.com/f35/cfv-com...q-post-274104/

Since the message was not a commercial message or promoting
the sale of a product or service, I didn't feel that .marketplace
was the appropriate venue. And, since I was especially trying
to say thanks to the denizens of .misc, I felt this was the
appropriate group.

Anyways, apologies all around and thanks again for the help!

--
Mark Harrison
Pixar Animation Studios


Reply With Quote
  #8  
Old   
mh@pixar.com
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 02:14 PM



DA Morgan <damorgan (AT) psoug (DOT) org> wrote:
Quote:
mh (AT) pixar (DOT) com wrote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.

And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.
Hmm, my intention in posting was just to say Thanks
to the people here (including you -- thanks again!!)
who helped me figure out the data dictionary stuff
and to let them know that I'm passing along what I've
learned from them to other people. (That's why there's
the special callout at the bottom of the message.)

I don't interpret the message as a violation of the charter,
which says in point 3

"The posting of commercial message, messages intended
to promote the sale of a product or service are expressly
forbidden in this group. Please restrict commercial messages to
comp.database.oracle.marketplace"

and in point 6

"Avoid SPAM or commercial messages"

these from: http://unixadmintalk.com/f35/cfv-com...q-post-274104/

Since the message was not a commercial message or promoting
the sale of a product or service, I didn't feel that .marketplace
was the appropriate venue. And, since I was especially trying
to say thanks to the denizens of .misc, I felt this was the
appropriate group.

Anyways, apologies all around and thanks again for the help!

--
Mark Harrison
Pixar Animation Studios


Reply With Quote
  #9  
Old   
mh@pixar.com
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 02:14 PM



DA Morgan <damorgan (AT) psoug (DOT) org> wrote:
Quote:
mh (AT) pixar (DOT) com wrote:
I'm pleased to announce the initial release of OraPIG,
the Oracle Python Interface Generator.

And we'd be pleased if you behaved like a member of our
community and didn't insult us wit spam in violation of
this group's charter.
Hmm, my intention in posting was just to say Thanks
to the people here (including you -- thanks again!!)
who helped me figure out the data dictionary stuff
and to let them know that I'm passing along what I've
learned from them to other people. (That's why there's
the special callout at the bottom of the message.)

I don't interpret the message as a violation of the charter,
which says in point 3

"The posting of commercial message, messages intended
to promote the sale of a product or service are expressly
forbidden in this group. Please restrict commercial messages to
comp.database.oracle.marketplace"

and in point 6

"Avoid SPAM or commercial messages"

these from: http://unixadmintalk.com/f35/cfv-com...q-post-274104/

Since the message was not a commercial message or promoting
the sale of a product or service, I didn't feel that .marketplace
was the appropriate venue. And, since I was especially trying
to say thanks to the denizens of .misc, I felt this was the
appropriate group.

Anyways, apologies all around and thanks again for the help!

--
Mark Harrison
Pixar Animation Studios


Reply With Quote
  #10  
Old   
DA Morgan
 
Posts: n/a

Default Re: announce: OraPIG, python wrappers for Oracle - 05-27-2008 , 02:59 PM



mh (AT) pixar (DOT) com wrote:

Quote:
Anyways, apologies all around and thanks again for the help!
Thank you for your prompt reply.

What bothered me was the:
"I'm pleased to announce the initial release of" which read
not a thank you but as a promotion.

But the fact that you have done the right think is really
appreciated and I am sure will win you friends in the
community.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.