background preloader

Systems programming

Facebook Twitter

Lawouach/WebSocket-for-Python - GitHub. Pcapy. Pcapy is a Python extension module that interfaces with the libpcap packet capture library.


Pcapy enables python scripts to capture packets on the network. Supay 0.0.8. Package Index : setproctitle 1.1. A library to allow customization of the process title.

Package Index : setproctitle 1.1

The library allows a process to change its title (as displayed by system tools such as ps and top). Changing the title is mostly useful in multi-process systems, for example when a master process is forked: changing the children's title allows to identify the task each process is busy with. The technique is used by PostgreSQL and the OpenSSH Server for example.

The procedure is hardly portable across different systems. PostgreSQL provides a good multi-platform implementation: this module is a Python wrapper around PostgreSQL code. You can use easy_install to install the module: to perform a system-wide installation use: sudo easy_install setproctitle If you are an unprivileged user or you want to limit installation to a local environment, you can use the command: TrueCrypt - Free Open-Source On-The-Fly Disk Encryption Software for Windows 7/Vista/XP, Mac OS X and Linux. BackgroundCall. BackgroundCall is the twin brother of recipe "CallQueue".


The motto is: 'The programmer controls the program - not reverse' Unlike the Java-ish stiff threading.Thread with .run()/.start()/.isAlive()/.join() and Queue.Queue with .put()/.get()/.task_done()/.join(), BackgroundCall and CallQueue are maybe a more natural high-level "threading" API for the dynamic-typing, functional language Python. In fact one could almost forget about the term "thread", but have "functions" all the way: Threads/deamons return None/never ? Have requested that kind of layout for addition to threading / Queue. Feedback / Suggestions? Pydkim - Python DKIM Library. NOTE: This page describes the last release of pydkim from 2008.

The latest version is a fork found at dkimpy in Launchpad and is under active development. The pydkim module is a Python module that implements DKIM (DomainKeys Identified Mail) email signing and verification. Download The pydkim library is provided in source form. Matplotlib and pylons. CORE SECURITY TECHNOLOGIES. Impacket is a collection of Python classes focused on providing access to network packets.


Impacket allows Python developers to craft and decode network packets in simple and consistent manner. It includes support for low-level protocols such as IP, UDP and TCP, as well as higher-level protocols such as NMB,SMB and MSRPC (a.k.a. DCERPC). Impacket is highly effective when used in conjunction with a packet capture utility or package such as Pcapy. Packets can be constructed from scratch, as well as parsed from raw data. The following protocols are featured in Impacket Ethernet, Linux "Cooked" capture. The following tools are featured in Impacket. Jon's Python modules. Python_daemon. Package Index > python-daemon > 1.5.5 Not Logged In python-daemon 1.5.5 Download python-daemon-1.5.5.tar.gz Library to implement a well-behaved Unix daemon process.


This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon process library". A well-behaved Unix daemon process is tricky to get right, but the required steps are much the same for every daemon program. Simple example of usage: import daemon from spam import do_main_program with daemon.DaemonContext(): do_main_program() Customisation of the steps to become a daemon is available by setting options on the DaemonContext instance; see the documentation for that class for each option. Downloads (All Versions): 4601 downloads in the last day 25272 downloads in the last week 98705 downloads in the last month Website maintained by the Python community Real-time CDN by Fastly / hosting by Rackspace / design by Tim Parkin.


Esmre - Google Code. Esmre is a Python module that can be used to speed up the execution of a large collection of regular expressions.

esmre - Google Code

It works by building a index of compulsory substrings from a collection of regular expressions, which it uses to quickly exclude those expressions which trivially do not match each input. Here is some example code that uses esmre: >>> import esmre>>> index = esmre.Index()>>> index.enter(r"Major-General\W*$", "savoy opera")>>> index.enter(r"\bway\W+haye?

\b", "sea shanty")>>> index.query("I am the very model of a modern Major-General. ")['savoy opera']>>> index.query("Way, hay up she rises,")['sea shanty']>>> The esmre module builds on the simpler string matching facilities of the esm module, which wraps a C implementation some of the algorithms described in Aho's and Corasick's paper on efficient string matching [Aho, A.V, and Corasick, M. Here is some example code that uses esm directly: You can see more usage examples in the tests.

Nagify: Python utility to display notifications about Nagios ale.