Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple tools for system administration tasks

Project Description



This library is a set of easy to use modules to help with automation of system administration tasks:

import sy.path,,, sy.cmd

# Replace lines in '/etc/hosts' that match nis.*
sy.path.replace_lines('/etc/hosts', 'nis.*', ' ldap')

# Fetch information about the interface hme0
hme0 ='hme0')

# Get the IP of hme0

# Check if hme0 is up

# Find files named '*.pl' but time out after 10 seconds
out, err ='find /mnt -name {}', '*.pl', timeout=10)

# Check if port 22 is answering on bart
if not'bart', 22):
   sy.log.warning('Ssh is down on bart')

The library is heavily inspired by Werkzeug which is a great WSGI utility collection.


The repository path for sy is located at Clone with git by typing:

$ git clone

The requirements for developing are listed in dev-reqs.pip that can be install with pip with:

$ pip install -r dev-reqs.pip

The library currently targets python 2.4.4 - 2.6.


To run the test suite use nose:

$ nosetests -a '!host' tests

The !host parameter tells the suite to not run tests that change the hosts configuration (like reconfiguring network interfaces).

There currently isn’t any automated way to run the testsuite on virtual machines. This feature is greatly needed to be able to test all parts of the library and to test it on different versions and operating systems.


The documentation is built with sphinx and is locate under the docs folder.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(54.7 kB) Copy SHA256 Hash SHA256
Egg 2.5 Jun 14, 2011

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting