Command line programs are classes, too! - 0 views
-
I hope this article encourages you to think about your command line programs in a different light, and to treat them as first class objects. Using inheritance to share code is so common in other areas of development that it is hardly given a second thought in most cases. As has been shown with the SQLiteAppBase programs, the same technique can be just as powerful when applied to building command line programs, saving development time and testing effort as a result. CommandLineApp has been used as the foundation for dozens of types of programs, and could be just what you need the next time you have to write a new command line program.
python interval Module - 0 views
Allen's Weblog: More Than Just Parsers - 0 views
rsync implemented in Python - 0 views
-
This script mimics rsync which is available for the unix platform and have been ported to win32 one. It is a sort of advanced version of xcopy. Its aim is to selectively synchronize folders. More precisely it copy selective parts of a folder to a destination folder and in addition can remove parts of the destination folder that do not correspond to parts of the original folder. I like its capability to avoid copying files through the .cvsignore mechanism or the pattern matching mechanism and its capability to delete files that are no longer relevant, not to mention that because it's a python script anyone can easily fix or improve it as he whish.
Manipulate simple polynomials in Python - 0 views
Epydoc -- automatic Python documentation - 0 views
-
Epydoc is a tool for generating API documentation for Python modules, based on their docstrings. For an example of epydoc's output, see the API documentation for epydoc itself (html, pdf). A lightweight markup language called epytext can be used to format docstrings, and to add information about specific fields, such as parameters and instance variables. Epydoc also understands docstrings written in reStructuredText, Javadoc, and plaintext. For a more extensive example of epydoc's output, see the API documentation for Python 2.5.
Python For Delphi integration - 0 views
Foreword: Why Paver? - Paver v0.7 documentation - 0 views
-
I didn’t want to make a new build tool. Honestly. The main reason that I created Paver is...
PyTone: MP3 jukebox redux - 0 views
spreadsheet in python: pyspread - 0 views
-
Pyspread is a spreadsheet that accepts a pure python expression in each cell. Requires Python 2.4, Numpy 1.0.4, and wxPython 2.8.7.1.
osh-- Reference Documentation - 0 views
Osh 0.9 User's Guide - 0 views
User:Marshall Hampton/Sage - OpenWetWare - 0 views
Most efficient unzip - inverse of zip? - 0 views
-
I'm declaring this one to be the winner! (Not that my opinion counts for anythin, but I'm just impressed: a1, b1 = zip(*ab) (or a1, b1 = apply(zip,ab)?) BTW: this process isn't 100% inverse. It has the side effect of turning lists or strings (non-tuple sequences) into tuples, if they are supplied as the original sequences.
unit step (heaviside) function in sympy? - sympy | Google Groups - 0 views
-
On Mon, May 5, 2008 at 8:22 PM, Reckoner <recko...@gmail.com> wrote: > is there a unit step (heaviside) function in sympy? > I need to work a conditional into a symbolic expression. We have sign which is basically the same thing:
Using lpsolve from Python - 0 views
XGraph plot dot showing multiple edges - networkx-discuss | Google Groups - 0 views
-
For example edge labels can be added using matplotlib "text" objects like this: import networkx as nx import pylab as plot K=nx.XGraph(name="Konigsberg", multiedges=True, selfloops=False) K.add_edges_from([("A","B","Honey Bridge"), ("A","B","Blacksmith's Bridge"), ("A","C","Green Bridge"), ("A","C","Connecting Bridge"), ("A","D","Merchant's Bridge"), ("C","D","High Bridge"), ("B","D","Wooden Bridge")]) pos=nx.spring_layout(K) nx.draw_nx(K,pos) xa,ya=pos['A'] xb,yb=pos['B'] plot.text((xa+xb)/2,(ya+yb)/2,"Blacksmith's Bridge") plot.show() With a little work you can get the label rotated and exactly how you want it positioned. You can also set the node positions directly in the "pos" dictionary above.
« First
‹ Previous
261 - 280 of 350
Next ›
Last »
Showing 20▼ items per page