Popular recipes tagged "meta:requires=os" and "programs"http://code.activestate.com/recipes/tags/meta:requires=os+programs/2012-07-04T01:23:12-07:00ActiveState Code RecipesPants (Python)
2012-07-03T05:31:24-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578188-pants/
<p style="color: grey">
Python
recipe 578188
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/archive/">archive</a>, <a href="/recipes/tags/old/">old</a>, <a href="/recipes/tags/programs/">programs</a>, <a href="/recipes/tags/shell/">shell</a>).
</p>
<p>According to memory this is a port of a shell script called pants that allows one to "start," "stop," "restart," and find the "status" of one's pants (the program itself). I am not sure what the silliness is about but must have found the idea interesting to rewrite in Python. This is committed for archival to be run under Python 2.5 or later versions.</p>
Consolidate group of modules into one recipe (Python)
2010-07-21T21:22:46-07:00Jack Trainorhttp://code.activestate.com/recipes/users/4076953/http://code.activestate.com/recipes/577297-consolidate-group-of-modules-into-one-recipe/
<p style="color: grey">
Python
recipe 577297
by <a href="/recipes/users/4076953/">Jack Trainor</a>
(<a href="/recipes/tags/programs/">programs</a>, <a href="/recipes/tags/recipe/">recipe</a>, <a href="/recipes/tags/shortcut/">shortcut</a>).
Revision 4.
</p>
<p>Packs all python source files from current directory into a single recipe file that can be later run to recreate packed files. Skips files whose names begin with underscore or contain "recipe".</p>
Pyscanlogger - Python Port scan detector (Python)
2010-03-17T07:27:15-07:00Anandhttp://code.activestate.com/recipes/users/760763/http://code.activestate.com/recipes/576690-pyscanlogger-python-port-scan-detector/
<p style="color: grey">
Python
recipe 576690
by <a href="/recipes/users/760763/">Anand</a>
(<a href="/recipes/tags/network/">network</a>, <a href="/recipes/tags/programs/">programs</a>, <a href="/recipes/tags/security/">security</a>).
Revision 5.
</p>
<p>A pure Python program to detect network port scanning attacks. Currently logs different TCP port scans. Can run in the background like a daemon and log attacks to a log file.</p>
List classes, methods and functions in a module (Python)
2008-10-22T08:15:26-07:00Anandhttp://code.activestate.com/recipes/users/760763/http://code.activestate.com/recipes/553262-list-classes-methods-and-functions-in-a-module/
<p style="color: grey">
Python
recipe 553262
by <a href="/recipes/users/760763/">Anand</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 5.
</p>
<p>The recipe provides a method "describe" which takes a module as argument and describes classes, methods and functions in the module. The method/function description provides information on the function/method arguments using the inspect module.</p>
Deep rename (Python)
2008-10-13T07:01:53-07:00David Pokornyhttp://code.activestate.com/recipes/users/4166601/http://code.activestate.com/recipes/576537-deep-rename/
<p style="color: grey">
Python
recipe 576537
by <a href="/recipes/users/4166601/">David Pokorny</a>
(<a href="/recipes/tags/files/">files</a>, <a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>Rename an identifier in all source files in a directory tree.</p>
pypopper - Python POP3 Server (Python)
2007-10-24T18:52:39-07:00Daniel Millerhttp://code.activestate.com/recipes/users/4016391/http://code.activestate.com/recipes/534131-pypopper-python-pop3-server/
<p style="color: grey">
Python
recipe 534131
by <a href="/recipes/users/4016391/">Daniel Miller</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>While developing <a href="http://pieces.openpolitics.com/thunderbayes/">ThunderBayes</a> (an extension for Thunderbird) I wrote this simple POP3 server to serve a message to my ThunderBayes test setup.</p>
Mixing features of "tree" and of "md5sum" : tree_md5 :) (Python)
2008-03-29T09:12:09-07:00Guillaume Knispelhttp://code.activestate.com/recipes/users/4127202/http://code.activestate.com/recipes/552739-mixing-features-of-tree-and-of-md5sum-tree_md5/
<p style="color: grey">
Python
recipe 552739
by <a href="/recipes/users/4127202/">Guillaume Knispel</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>Have you ever wanted to describe a filesystem subtree with, as an extra bonus, the md5sum of each file ?</p>
<p>I have.</p>
<p>Here is a tiny Python script that mixes functions of "tree" and of "md5sum", just for your pleasure.</p>
<p>I wrote it with Python 2.4 under Linux.</p>
Skeleton script Hello World (Python)
2007-12-07T15:32:02-08:00Noah Spurrierhttp://code.activestate.com/recipes/users/103276/http://code.activestate.com/recipes/528877-skeleton-script-hello-world/
<p style="color: grey">
Python
recipe 528877
by <a href="/recipes/users/103276/">Noah Spurrier</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 5.
</p>
<p>I write a lot of small scripts in Python. This is the template that I use to start most of my scripts. This gets me started with good documentation, argument parsing, and error handling.</p>
Blackjack (Python)
2007-06-25T12:23:47-07:00Mike McGowanhttp://code.activestate.com/recipes/users/4064733/http://code.activestate.com/recipes/522992-blackjack/
<p style="color: grey">
Python
recipe 522992
by <a href="/recipes/users/4064733/">Mike McGowan</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>Text based command line blackjack. Hit and Stand are the only available options. Clean, commented code. Comment out any "clear()" statements you see if you want to run it in Idle.</p>
Egg Timer (Python)
2012-07-04T01:03:27-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510390-egg-timer/
<p style="color: grey">
Python
recipe 510390
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>This program can actually time anything you want,
not just eggs. Unfortunately, it only runs on Windows.</p>
Alarm Clock (Python)
2012-07-04T01:05:12-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510387-alarm-clock/
<p style="color: grey">
Python
recipe 510387
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>This program can act an an alarm clock on a Windows machine.</p>
Media Renamer (Python)
2012-07-04T01:23:12-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510389-media-renamer/
<p style="color: grey">
Python
recipe 510389
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>This program can rename lots of files that it recognizes for indexing purposes.</p>
Extention Editor (Python)
2007-03-20T18:20:30-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510388-extention-editor/
<p style="color: grey">
Python
recipe 510388
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>This program raises or lowers the case of your file's extention.</p>
Proxy Example (Python)
2007-02-01T21:55:34-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/502205-proxy-example/
<p style="color: grey">
Python
recipe 502205
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>This is just a simple example usage example of the proxy module presented here:
<a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502204" rel="nofollow">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/502204</a></p>
Hex Dumper (Python)
2012-07-04T01:07:49-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/502203-hex-dumper/
<p style="color: grey">
Python
recipe 502203
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/dump/">dump</a>, <a href="/recipes/tags/dumper/">dumper</a>, <a href="/recipes/tags/hex/">hex</a>, <a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>Just another hex dumper written in one of our favorite languages ...</p>
Quote python strings for safe use in POSIX shells (Python)
2006-10-16T10:30:58-07:00Richard Philipshttp://code.activestate.com/recipes/users/98125/http://code.activestate.com/recipes/498202-quote-python-strings-for-safe-use-in-posix-shells/
<p style="color: grey">
Python
recipe 498202
by <a href="/recipes/users/98125/">Richard Philips</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>Often one has to quote a python string so that the result can be used as an argument to a command running in a POSIX shell.</p>
<p>The function QuoteForPOSIX can be used with sh, bash, csh, ksh</p>
Simple lockfile to detect previous instances of app (Python)
2007-03-05T21:54:12-08:00Jordan Callicoathttp://code.activestate.com/recipes/users/2948075/http://code.activestate.com/recipes/498171-simple-lockfile-to-detect-previous-instances-of-ap/
<p style="color: grey">
Python
recipe 498171
by <a href="/recipes/users/2948075/">Jordan Callicoat</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 3.
</p>
<p>This recipe implements a simple lockfile to ensure that only one instance of an app is alive at any given time.</p>
<p>1.2 Added documentation and cleaned up a bit.</p>
Tabify (Python)
2006-07-19T04:25:01-07:00Yuce Tekolhttp://code.activestate.com/recipes/users/2933766/http://code.activestate.com/recipes/496893-tabify/
<p style="color: grey">
Python
recipe 496893
by <a href="/recipes/users/2933766/">Yuce Tekol</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 3.
</p>
<p>A little script for those of us who prefer tabs over spaces.</p>
Disk Dumper (Python)
2006-03-20T20:33:47-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/475157-disk-dumper/
<p style="color: grey">
Python
recipe 475157
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>This recipe will display a hex dump of the disk specified on the command line. As the last two arguments, the program takes the first sector and last sector that should be displayed by this utility. The size of the sectors is stored in a variable created right after the imports executed by this script. The main feature of this recipe is its cross OS capabilities as demonstrated in get_data.</p>
Mix'n'matching (Python)
2006-03-30T10:59:36-08:00José Fonsecahttp://code.activestate.com/recipes/users/2819790/http://code.activestate.com/recipes/475169-mixnmatching/
<p style="color: grey">
Python
recipe 475169
by <a href="/recipes/users/2819790/">José Fonseca</a>
(<a href="/recipes/tags/programs/">programs</a>).
Revision 2.
</p>
<p>Python script to figure out how to best fit a collection of data into a container (such as a DVD) while avoiding to waste free space.</p>