Popular recipes tagged "meta:loc=133"http://code.activestate.com/recipes/tags/meta:loc=133/2014-08-27T16:04:04-07:00ActiveState Code RecipesPython ADO Database Interface for MS SQL Server - Python 3 version 1.0 (Python) 2014-08-27T16:04:04-07:00Jorge Besadahttp://code.activestate.com/recipes/users/100038/http://code.activestate.com/recipes/578913-python-ado-database-interface-for-ms-sql-server-py/ <p style="color: grey"> Python recipe 578913 by <a href="/recipes/users/100038/">Jorge Besada</a> (<a href="/recipes/tags/ado/">ado</a>, <a href="/recipes/tags/database/">database</a>). Revision 3. </p> <p>This DBI implements the Cursor and Connection objects. You can create connections, cursors, do fetchone, fetchall. It uses ADO. Will add more features later </p> Monte Carlo Engine : Simple Head Tail Model (Python) 2014-04-27T17:25:25-07:00alexander bakerhttp://code.activestate.com/recipes/users/4166679/http://code.activestate.com/recipes/578868-monte-carlo-engine-simple-head-tail-model/ <p style="color: grey"> Python recipe 578868 by <a href="/recipes/users/4166679/">alexander baker</a> (<a href="/recipes/tags/carlo/">carlo</a>, <a href="/recipes/tags/monte/">monte</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/strategy/">strategy</a>). Revision 2. </p> <p>Wanted to implement something that shows how the simple framework can be used to investigate a basic heads and tail game. The betting strategy can be varied simply by changing the logic in the ontrail() method. This currently tests the double or quits strategy. Run it to see how many </p> Command Threads (Python) 2010-12-25T23:23:49-08:00Shao-chuan Wanghttp://code.activestate.com/recipes/users/4168519/http://code.activestate.com/recipes/577505-command-threads/ <p style="color: grey"> Python recipe 577505 by <a href="/recipes/users/4168519/">Shao-chuan Wang</a> (<a href="/recipes/tags/threading/">threading</a>). Revision 4. </p> <p>A thread that accepts callable objects as "commands" or "jobs" to execute.</p> iTunes control (Tcl) 2010-03-30T04:06:56-07:00Frank Bannonhttp://code.activestate.com/recipes/users/4167503/http://code.activestate.com/recipes/577165-itunes-control/ <p style="color: grey"> Tcl recipe 577165 by <a href="/recipes/users/4167503/">Frank Bannon</a> (<a href="/recipes/tags/itunes/">itunes</a>, <a href="/recipes/tags/tcom/">tcom</a>). </p> <p>Simple TCL commands can control your iTunes player, add network control, or create an alternate interface. This recipe uses the tcom package on Windows.</p> PhotoLibrarian (Python) 2009-08-11T07:44:45-07:00Alex Hardenhttp://code.activestate.com/recipes/users/4044700/http://code.activestate.com/recipes/511439-photolibrarian/ <p style="color: grey"> Python recipe 511439 by <a href="/recipes/users/4044700/">Alex Harden</a> (<a href="/recipes/tags/graphics/">graphics</a>). Revision 3. </p> <p>Looks at a directory hive, finds .JPGs with EXIF info, and sorts them in a new directory structure by camera model, year, month, and optionally, date. Imports EXIF.py and dirwalk.py in addition to standard Python modules.</p> print a dictionary in a structural way (Python) 2004-11-05T10:38:29-08:00Runsun Panhttp://code.activestate.com/recipes/users/1521341/http://code.activestate.com/recipes/327142-print-a-dictionary-in-a-structural-way/ <p style="color: grey"> Python recipe 327142 by <a href="/recipes/users/1521341/">Runsun Pan</a> . </p> <p>prnDict is a function to return a structural representation of a dictionary.</p> locust_fetchmail draft (Python) 2004-09-29T20:55:43-07:00binto widodohttp://code.activestate.com/recipes/users/2068367/http://code.activestate.com/recipes/306434-locust_fetchmail-draft/ <p style="color: grey"> Python recipe 306434 by <a href="/recipes/users/2068367/">binto widodo</a> (<a href="/recipes/tags/sysadmin/">sysadmin</a>). </p> <p>it use to fetchmail &amp; distribute into every user...for now only use for local but...only in class form..for now that i can present. use "class fetch_mail first" -> "class re_ex"</p> locust_fetchmail draft (Python) 2004-09-29T20:56:18-07:00binto widodohttp://code.activestate.com/recipes/users/2068367/http://code.activestate.com/recipes/306436-locust_fetchmail-draft/ <p style="color: grey"> Python recipe 306436 by <a href="/recipes/users/2068367/">binto widodo</a> (<a href="/recipes/tags/sysadmin/">sysadmin</a>). </p> <p>it use to fetchmail &amp; distribute into every user...for now only use for local but...only in class form..for now that i can present. use "class fetch_mail first" -> "class re_ex"</p> locust_fetchmail draft (Python) 2004-09-29T20:55:54-07:00binto widodohttp://code.activestate.com/recipes/users/2068367/http://code.activestate.com/recipes/306435-locust_fetchmail-draft/ <p style="color: grey"> Python recipe 306435 by <a href="/recipes/users/2068367/">binto widodo</a> (<a href="/recipes/tags/sysadmin/">sysadmin</a>). </p> <p>it use to fetchmail &amp; distribute into every user...for now only use for local but...only in class form..for now that i can present. use "class fetch_mail first" -> "class re_ex"</p> repeating alternator (Python) 2002-07-16T12:41:40-07:00Mark McEahernhttp://code.activestate.com/recipes/users/142688/http://code.activestate.com/recipes/139210-repeating-alternator/ <p style="color: grey"> Python recipe 139210 by <a href="/recipes/users/142688/">Mark McEahern</a> (<a href="/recipes/tags/algorithms/">algorithms</a>). Revision 4. </p> <p>A generator for cycling over a set of values. This recipe shows a generator-based approach for creating repeating alternators as well as several other approaches.</p> Dictionary Mixin / Framework (Python) 2002-03-31T15:26:44-08:00Raymond Hettingerhttp://code.activestate.com/recipes/users/178123/http://code.activestate.com/recipes/117236-dictionary-mixin-framework/ <p style="color: grey"> Python recipe 117236 by <a href="/recipes/users/178123/">Raymond Hettinger</a> (<a href="/recipes/tags/oop/">oop</a>). Revision 2. </p> <p>This mixin makes it easy to provide a full dictionary interface to a class defining only a few mapping methods for getting, setting, deleting, and listing keys. Also, a function is provided to incorporate the mixin at runtime so that code for existing modules need not be modified.</p>