Skip to content

Python_index_6

Pete Garcin edited this page Dec 12, 2017 · 5 revisions

Tabify
Table (FedTable)
Table indentation
Table indentation
Table objects with operations in SQL-like syntax.
Table splitter
Tag entry for Tkinter like Jquery Tag It
tail -f for multiple log files in a given directory
tail -f in Python
Tail a continuously growing file (like tail -f filename)
Tail Call Optimization Decorator
Tail multiple pidgin IRC logfiles
Tailing a live log file with Python.
Tailing a live log file with Python.
Takuzu solver
Tallying of objects (hashables)
tarfile.extractall with read access
TaskQueue
Taxi Fare Splitter
TCP Port Checker
Teach the hashbang header new tricks using a dual mode shell/python script
Teach your computer a few tricks
Technique for cyclical iteration
Technique for cyclical iteration II
Temp changer
Temperature Calculator
Temperature class
Temperature Conversation Application in Python
Templated Inheritance in Python
Templite
Templite+
Temporary substitution of object in modules via with statement
tensor and transpose
Terminal directory changer (GUI)
Terminal output of the "Bash completed man and info pages generation" recipe
Terminating a subprocess on Windows
Test byt2str Module
test if a file or string is text or binary
Test various OpenCV feature detectors in Python
Testing for an empty iterator
Testing if a variable is defined
Testing Tkinter or Selenium for Tkinter
Tetration Fractal
Tetris
Text Based Guest Book
Text Compressor
Text Compressor
Text Compressor 3.1
Text Editor in Python 3.3
Text Fader
Text File Searcher
Text Model
Text ruler for console (record-oriented data processing utility)
Text to PDF Converter (rewrite)
Text transformer with conditions
Text twister help??
Text widget width and height in pixels (Tkinter)
text-to-html
Text-to-Speech
Textual diffs between word files
text文本转化为html文本
tgraph - Simple ASCII graphing utility
The Auxiliary-Dictionary idiom for sequences with frequent 'in' tests
The Bentley-Knuth problem and solutions
The classmethod implementation of the singleton pattern
The Easy Cow
The eight, most annoying lines of code I ever did write.
The End of Inheritance: Automatic Run-time Interface Building for Aggregated Objects
The Game of Battleships in Python
The game of Hangman in Python
The Game of Tic Tac Toe in Python
The goto decorator
The Iota language in Python
The many uses of randomness - Part 1
The many uses of randomness - Part 2
The Markov Chain Algorithm
The Normal Cow
The Poem ( in Python)
The Secret Name of List Comprehensions
The Secret Name of List Comprehensions
The simple but handy "collector of a bunch of named stuff" class
The Simplest CGI Program
The Singleton Pattern implemented with Python
These Nasty Closures - Caveats for the Closure Enthusiast
Thinkpad Turtle
Thread Control Idiom
thread local storage in Python 2.4
Thread Pool
Thread pool (grows on demand)
thread pool example #2 -- easy_pool class
Thread pool mixin class for use with SocketServer.TCPServer
Thread pool with same API as (multi)processing.Pool
Thread Safe Any Object
Thread Syncronizer
Thread-safe caching object with file and HTTP implementations
Thread-safe MultiQueue
Thread-specific storage
thread2 -- killable threads
threadbox.py
Threaded Cherry Quixote
Threaded communication with subprocess
Threaded Documenting XML RPC server over HTTPS
Threaded FTP Client
threaded multipart FTP download via REST
threaded pipes
Threaded Queue Minder
Threaded test suite running and other goodies
ThreadedContext
Threads, Tkinter and asynchronous I/O
Threadsafe observer pattern implemented as descriptor
ThreadSafeProxy
tic
Tic Tac Toe
Tic Tac Toe console game
TicTacToe
TicTacToe (text based)
TicTacToe for python (1 or 2 players)
Time sections of code by using "with" statement
TimedCompressedRotatingFileHandler
timehook: modify the Python interpreter time.
Timeit module wrapper
timelimit: tell a function to time out after a time limit
Timeout Any Function
timeout decorator (with multiprocessing)
Timeout for (nearly) any callable
Timeout function using threading
timer.py
Timing an external subprocess
Timing out function
Timing various python statements
Tiny trace/debug-logging tool with smart event filtering
tkColorButton
Tkinter : moving geometry methods
Tkinter Animated GIF
Tkinter beautiful handler for pannedwindow (Similar to jQuery Layout)
Tkinter buddies or shorcuts
tkinter custom fonts
Tkinter Datepicker (like the jQuery UI datepicker)
Tkinter Desktop Notifications or Popups
Tkinter draggable list V2
Tkinter entry with placeholder
Tkinter file autocomplete entry
Tkinter frame with different border sizes
Tkinter frame with gradient
Tkinter Link or Hyperlink Button
TKinter Listbox example
Tkinter Notebook that fits to the height of every tab
Tkinter remote debugging
Tkinter search box
Tkinter selectors
Tkinter simultaneous scrolling
Tkinter Splash Screen
Tkinter Splash Screen
Tkinter table
Tkinter table with scrollbars
Tkinter tree widget: using idlelib.TreeWidget
Tkinter treeview like a table or multicolumn listbox
Tkinter. Grid with panes
tkMath, convert between pixels, inches, cm and mm
tkNotebook
To 'return None' from your Python-callable C function
to change instance to immutable
To Find out the Hard Disk Size,Free Space and Used Space of a Networked Computer
ToolTip for Tkinter
Top 20 linux distributions
Top-down, recursive pyparsing parsers without Forward() declarations
Topological Sort
Topological Sort
topological sorting again
tor socket monkeypatch
Tossing Heads and Tails
Total ordering class decorator
Total Ordering: Class Decorator for Filling in Rich Comparison Methods When Only One is Implemented
touch
Towers of Hanoi for wxPython
TRAC Interpreter - Class and Stack version
TRAC Interpreter - Dragon style
TRAC Interpreter -- Sixties programming language
Trace decorator for debugging
Trace expressions and comments in debug mode.
Traceback that does'nt output on sys.stderr
Track new/unreclaimed objects between 2 points in the code
Tracking and Manipulating the Python Import State
Tracking Child Classes
Tracking file requests in web server access logs
Transactionable Objects
Transactionable Objects (reloaded)
Transactional Set Updates
transform a text to another by regex
transform command line arguments to args and kwargs for a method call
Transmitting exceptions through XML-RPC
Transparent HTTP Tunnel for Python sockets (to be used by ftplib )
Transparently execute SQL queries as prepared statements with Postgresql
transposing a list of lists
Transposing a List of Lists with Different Lengths without Loosing Elements
Trap KeyboardInterrupt and EOFError for graceful program termination
Trapping and Displaying Exceptions
Traverse dotted attribute of an object using built-in function reduce
Treat the Win32 Registry like a Python dict
Treat the Win32 Registry like a Python dict -- pure python
Treat the Win32 Registry like a Python dict -- updated
Treat the Win32 Registry like a Python dict -- updated (again!)
tree.py - graphically displays the directory structure of a specified path
Trees and more trees
Trees and more trees, part II
Trifocal Tensor class
trifocal tensor from two camera matrices
Tripwire policy file creator
Trivia Template
True Lieberman-style delegation in Python.
True-color Mandelbrot Fractal
True-color Plasma Fractal
Truth Value Aware Iterable
TryFinally
tryout regex
tubeNick - Download youtube videos
Tuples with named elements
Tuples with named elements - using metaclasses
Tuples with Named Elements via Spawning
Turing Machine Simulator
Turn @some_decorator() into @some_decorator
Turn a Function Into a Class
turn the structure of a XML-document into a combination of dictionaries and lists
Turn Your Boring Old Modules Into Dynamic Powerhouses
Turning off caching for a specific page in Zope
TV Player
TV-Series Current Episode Info
Tweet Google+ posts
Tweet your GPS coordinates (Symbian)
twierdzenie Taylora
Twisted / BitTorrent :: Client / Server
Twisted Public Deferred
Twisted reStructuredText Server
Twisted XML RPC server with basic HTTP authentication
Twitter incremental backup in YAML format - by HTML get and parse
TwitterCmd - Interactive console for twittering
twizzler
two dict classes which can lookup keys by value, and values by key
Two quick functions for object introspection
Two-finger iterator
Two-pass Pairing Heap with Multipass Auxiliary List
twvalidator: a Markup Validator Gateway for Twisted Web
Type checked argument lists with decorators.
type Checking in Python using decorators (version 2.0)
Type checking using Python 3.x annotations
Type-checking decorator
Type-Checking Function Overloading Decorator
typeparser
typesafe records
Typing skills meter
Un arreglo zig-zag es un arreglo cuadrado de los primeros N2 enteros
un_comment.py
Unicode class which adds proper XML declaration on encoding
unicode Command line histograms
Unicode repr
Unicode String Hex Dump
unicode word-wrap function
uniform matcher( "re pattern" / re / func / dict / list / tuple / set )
Union Find data structure
Union-Find
Unique lines from a text file, case sensitive or insensitive
Unique Random Numbers
Unique stable-unstable
Unit Conversions Using Decimal
Unit Testing Nested Functions
Unit-safe measured quantities
unittest howto - practical demonstration of the various unittest methods
Universal eval to string function
Unix rename (mv) front-end with GNU Readline
unix subprocess wrapper
Unix tee-like functionality via a Python class
Unix-like split command in Python (simple version)
Uno (Text-Based)
Unprettify XML: Strip irrelevant spaces and newlines from XML
Unrestricted Grammar used like a dictionary
Unroll a single-dimension sequence into an HTML unordered list
unset engine in gtkrc; unset widget style in gtk
Unsupported sitecustomize.py sinze Python 2.5
unzip
Update Google Chrome localstorage file for version compatibility
Update Source Directories
Update stock quote using Yahoo! Finance web services
Update web to point to dynamic ip
Upgradable Pickles
ur1.ca command-line client
URL Refresher
URL shortner using Bit.ly api
url_spider
UrlAppServer
Urllib handler for Amazon S3 buckets
urllib2 for actions depending on http response codes
URLNorm
urrlib2 opener for SSL proxy (CONNECT method)
Use 'Google Maps Elevation Service' to get elevation data for any location on Earth.
use getattr to fake unlimited depth of attributes.methods
Use ADO to list field definitions for tables
Use Candygram to communicate among threads.
Use DebugView utility with standard python logging
Use email module to bundle contents of current directory
Use frame inspection to simplify template usage
Use function annotation to track elapsed execution time
Use generators for fetching large db record sets
Use good old INI files for configuration
Use Gtk.TreeView to browse MySql databases
Use IIS/ASP or Apache/mod_python with the same application
Use jython to access an LDAP server
Use Jython to time Java code
use modules generated with SWIG in a multi-thread environment
Use PDFWriter with context manager support
Use PEP 263 for metaprogramming
Use PIL to make a "contact sheet" montage of images
Use PIL to make a "contact sheet" montage of images
Use PrettyTable and xtopdf to create PDF tables with borders, alignment and padding
Use PyAudio to play a list of WAV files
Use rot13 to en/decrypt clear text
Use simple command-line options to effect program runtime.
Use Simple Plugins to Seemlessly Modify Modules at Import Time
Use try/except to handle unexpected input from raw_input.
Use with statement to insert, select and update a table
Use wxPython/OpenGL to draw a sphere
Useful Unrestricted Grammar
user and root directory logfile
User List Subclass
Userfriendly Webpage Template
using from somename.api import * when somename is a single module
Using a Dictionary in place of a 'switch' statement
Using a simple dictionary for CGI parameters
Using a wxPython "Notebook" with panels
Using Berkeley DB Database
Using ChainMap for embedded namespaces
using classmethods for ORMs (Object Relational Mappings)
Using code.InteractiveConsole to embed a Python shell in a user interface
Using ctypes to call C code from Python
Using ctypes to manipulate Windows registry and to register DLLs
Using DBI to access databases
Using decorators to load data structures
Using doctests to verify a module's export list
Using dtuple for Flexible Query Result Access
Using eval() To Transform Symbolic Expressions
using excel to debug python
Using Import for Reading Configuration Files
using inner classes for properties
using inner classes for transparent extensions to your class
Using introspection to verify Eiffel like contracts
Using IviScope Instrument driver with Python
Using Metaclasses and Class Decorators to Inherit Function Docstrings
Using MSHTML to Parse HTML
Using ODBC for extracting data from MS Excel
Using Pexpect and netrc to automate commands which prompt for a password
Using pngcanvas, a pure Python PNG library
Using proxy connection for QWebView
Using pycurl to automate filling out web forms
using pyHook to block Windows Keys
Using Python for ClearCase triggers
Using Python in Configuration Files
Using python scripts without .py extension in DOS shells
Using PyXPCOM to handle IDN
Using QMacCocoaViewContainer on PyQt4
Using re.match, re.search, and re.group in if ... elif ... elif ... else ...
Using reduce to access deeply nested dictionaries
Using RegObj: Automation access to the MSW Registry
Using reST (reStructuredText) to create HTML snippets
Using sorting order of your country/culture when sorting (collate,locale)
Using terminfo for portable color output & cursor control
Using the Apache XPath API from Jython
Using the email module to recursively unpack a multipart MIME message
Using the email module to recursively unpack a multipart MIME message (simpler method)
Using the logging module
Using the MySQLdb interface
using the operator module w/map (plus a bit on itertools and generator exp)
Using the python imaging library to generate degraded letter stimuli
Using the SAX2 LexicalHandler Interface
Using the Win32 IPHelper API
Using time "slices" to categorize events by period
Using Tkinter's Invoke Method for testing
Using translate w/binary files (like finding Berkley copyrights in exe's)
Using vlc.py to record an mp3 and save a cue file
Using websocketd with Python for web-based system monitoring
Using windll to extract version information from Windows files
Using wxPython with Twisted Python
Using xml-rpc
using xmlrpc with authenticated proxy server
Utility Mill Import
Utility Mill Support
Utility Mill Support Example
Utility Mill Test
Validate ABNs (Australian Business Numbers)
Validate ACNs (Australian Company Numbers)
Validate data easily with JSON Schema
Validate product
Validate XML with schemaLocation
Validating classes and objects against an Abstract Base Class
Validating XML with External DTDs using xmlproc
Variable Abbreviations
Variant assertion
Variant of property() allowing one function to be used for multiple attributes.
various idioms for "call my superclass's init IF it has one"
various Windows Script Host (WSH) examples converted to Python
vector
vector: A list based vector class supporting elementwise operations
Vectorize Operation
VectorObject
Verify a Single User Name and Password in Python
Verify if an argument is a valid number
Verify Username and Password Using a File for Storage
verifying SMIME signed email with M2Crypto and no signer's certificate
Version-specific import
Versioning file names
Very basic example of nevow capabilities
very poor man's xml parser and generator
Very Simple Delimiter Separated Values File Reader Generator
Very Simple HTTP Web Server
Very Simple Password Generator in Python
View an image URL with Jython and Swing
Viewing embedded pictures within docstrings
Virtual collections
Visualize unicode strings
vlc.py stream capture scheduler script
Voronoi diagram
Voxel Based Ray Tracing
Vpython example
VSS Integration Module
Wait for network service to appear
Wait for network service to appear
Wait for PID and check for PID existance (POSIX)
Wait to tomorrow
Waitable, cross-process threading.Event class.
Wake On Lan
Walk a directory tree using a generator
walk a local CVS directory tree
Walker encapsulates os.walk for easy reuse
Walker's alias method for random objects with different probablities
WalkRecursiveGenerators
War Card Game Simulation
War Game (Version 1)
War Game (Version 2)
War Game (Version 3)
War Game (Version 4)
War Game (Version 5)
War Game (Version 6)
warm welcome
Wasted Money Calculator
Watch directory and do periodic commits to Subversion repository.
Watch That Post
Watchdog: Decorator for Function Parameter / Result checking
Watching a directory tree on Unix
Watching a directory tree under Linux
Watching a directory under win32
Watermark with PIL
Weak Key and Value Dictionary
weak reference map
weakattr
weakmethod
WeakMethod
Web browser emulator
Web service accessible using both XML-RPC and SOAP protocols.
web sevice usage via a http proxy
Web Testing using Twill
webcheck: site to csv
webcounter
Website Mapper
Website Text Search
WebSocket interface
Weighted choice
weighted choice (short and easy numpy version)
Weighted random choice
Weighted random choice
When to not just use socket.close()
Where file search utility
where() function for generator expressions (Python 3)
Whitespace Assembler
Whitespace Helpers
Whitespace Interpreter
Whitespace Memory Manager
Whitespace Stack Calculator
whois
whois client
Wigle wifi geolocation [deprecated]
Wiki Recent Changes Checker
Win Registry module
Win Services helper
Win Shortcuts wrapper.
win32 impersonation (like sudo on unix)
Win32 named mutex class for system-wide mutex
win32 process information
Win32 registry file
win32 service administration
win32com - Accessing AutoCAD entities
Win32com - Batch repathing of Autocad Xrefs
Winamp Tiny Implementation - using ctypes
windex.py
Windowing an iterable with itertools
Windows CDRom Module
Windows clipboard viewer
Windows Console
Windows directory walk using ctypes
Windows Dll (with pointers parameters) calling with ctypes and calldll
Windows Event Log Viewer
Windows free drive space report
Windows network file transfers
Windows registry for dummies
Windows Registry: Search & Destroy
Windows SAPI4
Windows shortcuts import hook
Windows TREE Emulator
winnowing data with a heap.
with-open-file block in Python
Wolfram-style cellular automata
Word count and length with map and lambda
Word Wrap for Proportional Fonts
word wrap long line Java to limited line length with explicit backslashes
Word wrapping generator
word_wrap: a module to do very simplistic word wrapping of text
wordguess
Words to Numbers (English)
Wordze.com API bindings
Workaround for missed SIGINT in multithreaded programs
working with an email's headers
Working with Excel Indexes
working with GroupWise
Worley Noise Generator
Wrap a a file-like object in another that calls a user callback whenever read() is called on it.
Wrap a string in a file-like object that calls a user callback whenever read() is called on the stream
Wrap any iterable context manager so it closes when consumed
wrap unbounded generator to restrict its output
Wrapper class for the heapq module
Wrapping method calls (meta-class example)
wrapping python scripts in batch files
Wrapping template engine and template document
wrist friendly dictionary
Write a file to a WebDAV Server
Write a plugin for ImageJ
Write a PNG image in native Python
write sql via python
write_path and load_path methods for file generation scripts
Writes logfiles and keep backups
wserve
WSGI option parsing & type conversion
wsgi SPNEGO middleware
wx twisted support using threads
WxFileRenamer - GUI app for renaming files by regular expressions
WxGrepDialog - Iterative construction of regular expressions
wxKoch
wxPython Graphics - Drawing rubberbands over a canvas
wxPython LED control
wxPython PDF / XPS Viewer using PyMuPDF (binding for fitz / MuPDF)
wxPython PDF Viewer using Poppler
wxPython: Dramatic, shaded 3-D buttons that look like round glass in a metal ring.

Clone this wiki locally