background preloader

Might use this

Facebook Twitter

MechanicalSoup/MechanicalSoup: A Python library for automating interaction with websites. ImageSequence — pims v0.4 documentation. An image sequence is a collection of image files with sequential filenames.

ImageSequence — pims v0.4 documentation

ImageSequence can be instatiated using: a directory name, such as a 'my_directory'a “glob” string, such as 'my_directory/*.png', which is safer than using a directory because directories sometimes contain stray filesthe filepath of a zipped archive, such as 'my_directory/all-images.zip'a list of filepaths, such as ['image1.png', 'image2.png'] ImageSequenceND¶ This class allows reading of N-dimensional Image Sequences with multiple indices in the file name, for instance: ['image_z00_t00.png', 'image_z01_t00.png']. ReaderSequence¶ ‎www.ece.uci.edu/~jhahn/python/DTMF.pyc. Hardware Hacking With Python – /dev/ttyS0. In preparation for our Embedded Device Exploitation classes, I’ve just released my latest project, the Gumbi board: New Gumbi boards, fresh off the press The Gumbi board provides a flexible USB interface to the real world in the form of 64 digital I/O pins – all controllable from the comfort of your Python shell, allowing you to rapidly prototype and create new tools for interfacing with external devices.

Hardware Hacking With Python – /dev/ttyS0

Take flashbin for example, an open source flash programmer I’ve written for working with external parallel flash chips. Although popular for firmware storage, parallel NOR flash chips are particularly difficult for hobbyists/hackers to work with because their interface typically requires 30 to 40 I/O pins (or more!). This tends to result in error-prone wiring that has to be re-wired whenever you need to interface with a different chip: Using the Gumbi board however, everything can be defined (and re-defined) in software. Dumping firmware from the 4MB flash chip with flashbin. Play and Record Sound with Python — python-sounddevice, version 0.3.5. Pyknon. Pyknon Pyknon is a simple music library for Python hackers.

Pyknon

With Pyknon you can generate Midi files quickly and reason about musical proprieties. It works with Python 2.7 and 3.2. It's a library intended for teaching and demonstrating, so you should have no problems reading the source code. On the other hand, it doesn't do a lot of checking, so it's easy to break (and if you break it, you buy it). SymPy. PythonToolkit (PTK) Hosted by: PTK can be started simply by downloading (see box on left) and extracting the source and running the PTK.pyw launch script (windows users can double click the file to launch it). python PTK.pyw However to embed a PTK engine in your own application it is advisable to install PTK as a python package.

PythonToolkit (PTK)

This can be done using the windows installer or from the source distribution using python distutils. Embedding an engine in your own application will allow the PTK interface to control it, allowing code to be executed and objects inspected - this could be for program debugging or to allow users access to a console interface. To install, download (see box on left) and extract the source distribution, and run: python setup.py install. Xoscope for Linux. Spek – Free Acoustic Spectrum Analyzer / Spectrogram Viewer. Sonic Visualiser. Google Code Archive - Long-term storage for Google Code Project Hosting. Technical Blog of Igor Gnatenko. Multiprocessing Basics. The simplest way to spawn a second is to instantiate a Process object with a target function and call start() to let it begin working. import multiprocessing def worker(): """worker function""" print 'Worker' return if __name__ == '__main__': jobs = [] for i in range(5): p = multiprocessing.Process(target=worker) jobs.append(p) p.start() The output includes the word “Worker” printed five times, although it may not be entirely clean depending on the order of execution.

multiprocessing Basics

File - Write data to disk in Python as a background process. Sarge, a wrapper for Python's subprocess module. Welcome to sarge’s documentation!

sarge, a wrapper for Python's subprocess module

— Sarge 0.1.1 documentation. Creating Excel files with Python and XlsxWriter — XlsxWriter Documentation. An Introduction to ConfigObj. Note This article was originally published in the May 2008 issue of the Python Magazine.

An Introduction to ConfigObj

Many thanks to them for allowing me to reproduce it in full here. ConfigObj is a powerful and flexible configuration file parser suitable for any configuration needs. This article explores the basic use of configuration files, and some of the more advanced features that make ConfigObj the right choice for your application. Virtually every non-trivial application has to handle configuration data. Sarge, a wrapper for Python's subprocess module. Creating Excel files with Python and XlsxWriter — XlsxWriter Documentation. Category:LanguageBindings -> PySide. EnglishEspañolMagyarItalian한국어日本語 Welcome to the PySide documentation wiki page.

Category:LanguageBindings -> PySide

The PySide project provides LGPL-licensed Python bindings for the Qt. PySpectrum Space. Friture. Start [PythonCAD Wiki] What is PythonCAD PythonCAD is a CAD package written in Python.

start [PythonCAD Wiki]

The PythonCAD project aims to produce a scriptable, open-source, intuitive, cross platform CAD package. Old Web Site of the project PythonCAD website: Sourceforge Site of current Project PythonCAD website on Sourceforge: We are in the middle of a complete rewriting! Latest Testing release of PythonCAD Since May 2009 PythonCad has a new maintainer. Easy way to modify line and arc dimensions, with double click Titleblock with ISO format Hatch Dynamic Trim Modified interface to improve working with colours and text heights Import /export Dxf Improve Performance in Drawing (Now Use Cairo for rendering) Hatch Command …..

We are rewriting the base software and the interface .. so the R38 will be out for the end of 2010 .. For further information, please go to Or look at the R38 Road Map Latest Stable release of PythonCAD. Writing Python drivers for input devices.