<div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>It's ok to revive a old thread? :)<br><br></div>I finished my script (<a href="https://github.com/bicofino/Pyora">https://github.com/bicofino/Pyora</a>) using argparse.<br>
<br></div>But I have a question, today I'm connecting to the database outside the class Check, what's the best way to connect passing the arguments using argparse and run a function.<br><br></div>Today it work like this:<br>
</div><br><pre style="margin-top:15px;margin-right:0px;margin-bottom:0px!important;margin-left:0px;padding:6px 10px;border:1px solid rgb(221,221,221);font-size:13px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:rgb(248,248,248);line-height:19px;overflow:auto;border-radius:3px 3px 3px 3px;color:rgb(51,51,51);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px">
<code style="margin:0px;padding:0px;border:medium none;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:transparent;border-radius:3px 3px 3px 3px;white-space:pre"># Check Oracle version
0: python pyora.py version
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
</code></pre><br class=""></div>I was thinking that is better pass the database arguments(username,password,address,database) <br><div><br></div><div>it would run like this:<br></div><div>python pyora.py username,password,address,database version<br>
<br></div><div>Any thoughts?<br><br></div><div>Best Regards,<br><br>Danilo<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 10:31 AM, Danilo Chilene <span dir="ltr"><<a href="mailto:bicofino@gmail.com" target="_blank">bicofino@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><snip><br><br>That solves my issue.<br><br>Thanks Peter.<div class="im"><br>To unsubscribe or change subscription options:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>