<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Passing Curiosity: Posts tagged user interface</title>
    <link href="https://passingcuriosity.com/tags/user-interface/user-interface.xml" rel="self" />
    <link href="https://passingcuriosity.com" />
    <id>https://passingcuriosity.com/tags/user-interface/user-interface.xml</id>
    <author>
        <name>Thomas Sutton</name>
        
        <email>me@thomas-sutton.id.au</email>
        
    </author>
    <updated>2012-08-18T00:00:00Z</updated>
    <entry>
    <title>PyconAU 2012: Writing command-line applications</title>
    <link href="https://passingcuriosity.com/2012/command-line-applications/" />
    <id>https://passingcuriosity.com/2012/command-line-applications/</id>
    <published>2012-08-18T00:00:00Z</published>
    <updated>2012-08-18T00:00:00Z</updated>
    <summary type="html"><![CDATA[<p>Graeme Cross, How to write a well-behaved Python command-line application.</p>
<p>Goals include developing programs which are robust and well-maintained;
include a flexible, powerful interface; stay within the command-line paradigm
(pipes); handles errors and signals; well tested and documented.</p>
<p>We’re dealing with 2.6/2.7 in this session, there are some differences in
Python 3 releases.</p>
<p>The slides and code are available at http://www.curiousvenn.com/.</p>
<p>What is a well-behaved application? “Do one thing well”, be UNIX, robustly
handle bad input, gracefully handle errors, be well documented, platform
aware.</p>
<p>Use Python for its wide platform support; syntax; scalability; extensive
library ecosystem.</p>
<p>Scripts should use the following pattern:</p>
<pre><code>if __name__ == 'main':
    print &quot;running&quot;</code></pre>
<p>so that they can be imported for use as a library, testing, etc.</p>]]></summary>
</entry>

</feed>
