Popular recipes tagged "meta:loc=95"http://code.activestate.com/recipes/tags/meta:loc=95/2016-09-28T12:03:59-07:00ActiveState Code RecipesExtract images of a PDF - optionally by page using PyMuPDF / fitz (Python) 2016-09-28T12:03:59-07:00Jorj X. McKiehttp://code.activestate.com/recipes/users/4193772/http://code.activestate.com/recipes/580703-extract-images-of-a-pdf-optionally-by-page-using-p/ <p style="color: grey"> Python recipe 580703 by <a href="/recipes/users/4193772/">Jorj X. McKie</a> (<a href="/recipes/tags/fitz/">fitz</a>, <a href="/recipes/tags/pdf/">pdf</a>, <a href="/recipes/tags/png/">png</a>). </p> <p>Two small scripts to extract images contained in a PDF document as PNG files. (1) Script 1 extracts <strong>all</strong> images (2) Script 2 extracts only images that are referenced by a page</p> Print Hook (Python) 2015-12-04T02:51:42-08:00kauliehttp://code.activestate.com/recipes/users/4193226/http://code.activestate.com/recipes/579132-print-hook/ <p style="color: grey"> Python recipe 579132 by <a href="/recipes/users/4193226/">kaulie</a> (<a href="/recipes/tags/debugging/">debugging</a>). </p> <p>Hook on stdout and stderr so that we can handle printing of text,error differently e.g in GUI base application divert text to a log window.</p> Hangman Game (Demo) (Python) 2014-12-22T14:05:55-08:00Malcolm Jeremy Lewishttp://code.activestate.com/recipes/users/4191332/http://code.activestate.com/recipes/578987-hangman-game-demo/ <p style="color: grey"> Python recipe 578987 by <a href="/recipes/users/4191332/">Malcolm Jeremy Lewis</a> . </p> <p>Game is not finished yet...</p> Python 3 Token Bucket (Rate Limit) (Python) 2013-09-16T23:41:46-07:00Esteban Castro Borsanihttp://code.activestate.com/recipes/users/4184010/http://code.activestate.com/recipes/578659-python-3-token-bucket-rate-limit/ <p style="color: grey"> Python recipe 578659 by <a href="/recipes/users/4184010/">Esteban Castro Borsani</a> (<a href="/recipes/tags/bucket/">bucket</a>, <a href="/recipes/tags/limit/">limit</a>, <a href="/recipes/tags/rate/">rate</a>, <a href="/recipes/tags/ratelimit/">ratelimit</a>, <a href="/recipes/tags/token/">token</a>, <a href="/recipes/tags/tokenbucket/">tokenbucket</a>). </p> <p>A thread safe implementation.</p> Working with Excel Indexes (Python) 2012-05-22T18:25:21-07:00Garretthttp://code.activestate.com/recipes/users/4181290/http://code.activestate.com/recipes/578142-working-with-excel-indexes/ <p style="color: grey"> Python recipe 578142 by <a href="/recipes/users/4181290/">Garrett</a> (<a href="/recipes/tags/column/">column</a>, <a href="/recipes/tags/columns/">columns</a>, <a href="/recipes/tags/excel/">excel</a>, <a href="/recipes/tags/python/">python</a>). </p> <p>I have had extensive issues working with excel indexies (i.e. 'AA100'). Here is code to convert out of and into all of the indexes.</p> <p>There may be better ways to do this, I don't care anymore. This works.</p> Yahoo Stock Information (Python) 2012-08-25T17:16:47-07:00Alexander James Wallarhttp://code.activestate.com/recipes/users/4179768/http://code.activestate.com/recipes/577989-yahoo-stock-information/ <p style="color: grey"> Python recipe 577989 by <a href="/recipes/users/4179768/">Alexander James Wallar</a> (<a href="/recipes/tags/computation/">computation</a>, <a href="/recipes/tags/corey_goldberg/">corey_goldberg</a>, <a href="/recipes/tags/finance/">finance</a>, <a href="/recipes/tags/information/">information</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/realtime/">realtime</a>, <a href="/recipes/tags/stock/">stock</a>, <a href="/recipes/tags/yahoo/">yahoo</a>). Revision 3. </p> <p>This recipe is solely due to the programming of Corey Goldberg (<a href="mailto:corey@goldb.org">corey@goldb.org</a>). The only thing I did to it was make it into a class. I thought that by uploading it here that more people would come across it and more people could use it. It is really good. It gives you stock information.</p> A simple function benchmarking module (Python) 2010-08-27T09:26:48-07:00Timothee Cezardhttp://code.activestate.com/recipes/users/4174785/http://code.activestate.com/recipes/577377-a-simple-function-benchmarking-module/ <p style="color: grey"> Python recipe 577377 by <a href="/recipes/users/4174785/">Timothee Cezard</a> (<a href="/recipes/tags/benchmark/">benchmark</a>, <a href="/recipes/tags/debugging/">debugging</a>, <a href="/recipes/tags/function/">function</a>). </p> <p>This module enable its user to monitor the amount of time spend in between two commands start and stop. The module is fairly imprecise if the monitored task is quick as the start and stop commands are fairly slow (2e-07 - 5e-07 second)</p> Download a file via Trivial File Transfer Protocol (TFTP) (Python) 2007-02-16T17:10:56-08:00Michael Soulierhttp://code.activestate.com/recipes/users/2712185/http://code.activestate.com/recipes/502226-download-a-file-via-trivial-file-transfer-protocol/ <p style="color: grey"> Python recipe 502226 by <a href="/recipes/users/2712185/">Michael Soulier</a> (<a href="/recipes/tags/network/">network</a>). </p> <p>The tftpy library provides simple classes for TFTP clients and servers alike. This is as simple as installing this library, instantiating a TftpClient object, and invoking its download() method.</p> finduser.py (Python) 2006-10-07T21:24:08-07:00Jason Curreyhttp://code.activestate.com/recipes/users/4004755/http://code.activestate.com/recipes/498183-finduserpy/ <p style="color: grey"> Python recipe 498183 by <a href="/recipes/users/4004755/">Jason Currey</a> (<a href="/recipes/tags/network/">network</a>). </p> <p>Finds a windows hostname given the username</p> A general purpose file iterator class (Python) 2005-04-06T06:31:31-07:00Anandhttp://code.activestate.com/recipes/users/760763/http://code.activestate.com/recipes/408996-a-general-purpose-file-iterator-class/ <p style="color: grey"> Python recipe 408996 by <a href="/recipes/users/760763/">Anand</a> (<a href="/recipes/tags/files/">files</a>). </p> <p>This recipe presents a general purpose file object iterator cum file object proxy class. It provides a class that gives several iterator functions to read a text file by characters, words, lines, paragraphs or blocks. It also acts as a proxy for the wrapped file object.</p> HI-LO game (Java) 2010-02-23T15:56:05-08:00Ohm Patelhttp://code.activestate.com/recipes/users/2329187/http://code.activestate.com/recipes/388133-hi-lo-game/ <p style="color: grey"> Java recipe 388133 by <a href="/recipes/users/2329187/">Ohm Patel</a> (<a href="/recipes/tags/programs/">programs</a>). </p> <p>This program is a game in which someone will try and guess a number between 1-100 in 4 tries. It will also give out instructions of how to play using methods and will also tell the person if their guess was too low or too high.</p> Enable xmlrpclib to maintain a JSP session (Python) 2002-11-10T08:46:45-08:00Danny Yoohttp://code.activestate.com/recipes/users/98032/http://code.activestate.com/recipes/161816-enable-xmlrpclib-to-maintain-a-jsp-session/ <p style="color: grey"> Python recipe 161816 by <a href="/recipes/users/98032/">Danny Yoo</a> . </p> <p>This extension to xmlrpclib allows us to maintain a session with a JSP server, so that there appears to be a stateful session. It tries to maintain the JSESSIONID call between calls to the server.</p> Print Hook (Python) 2002-04-04T03:03:55-08:00anurag uniyalhttp://code.activestate.com/recipes/users/127639/http://code.activestate.com/recipes/119404-print-hook/ <p style="color: grey"> Python recipe 119404 by <a href="/recipes/users/127639/">anurag uniyal</a> (<a href="/recipes/tags/debugging/">debugging</a>). </p> <p>Hook on stdout and stderr so that we can handle printing of text,error differently e.g in GUI base application divert text to a log window.</p> HTML Templates (Python) 2002-08-24T05:46:00-07:00Michael Soulierhttp://code.activestate.com/recipes/users/645856/http://code.activestate.com/recipes/146460-html-templates/ <p style="color: grey"> Python recipe 146460 by <a href="/recipes/users/645856/">Michael Soulier</a> (<a href="/recipes/tags/cgi/">cgi</a>). </p> <p>This recipe consists of two classes usable for managing html templates, applicable to output from a CGI.</p>