background preloader

Might use this

Facebook Twitter

‎ 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!). Play and Record Sound with Python — python-sounddevice, version 0.3.5. Pyknon. Pyknon Pyknon is a simple music library for Python hackers.


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). You can install Pyknon using pip: pip install pyknon Pyknon is very simple to use, here's a basic example to create 4 notes and save into a MIDI file:: 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).

PythonToolkit (PTK)

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. $ python Worker Worker Worker Worker Worker.

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 sarge provides a somewhat more user-friendly interface to the subprocess module from Python's standard library. It lets your Python program talk to external commands. 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. 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. It also includes complete toolchain for rapidly generating bindings for any Qt-based C++ class hierarchies. PySide Qt bindings allow both free open source and proprietary software development and ultimately aim to support Qt platforms. The latest version of PySide is 1.2.1 released on August 16, 2013 and provides access to the complete Qt 4.8 framework. This Wiki is a community area where you can easily contribute, and which may contain rapidly changing information. [[Category:LanguageBindings::PySide]] Also, since PySide is sharing the wiki with other Qt users, include the word “PySide” or “Python” in the names of any new pages you create to differentiate it from other Qt pages..

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 Since Dicember 1th 2009, the current version of PythonCAD is release 37. Little history of the project. Writing Python drivers for input devices.