This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Documentation: http://sy.afajl.com

Source: http://github.com/afajl/sy

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

import sy.path, sy.net.intf, sy.net.ip, sy.cmd

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

# Fetch information about the interface hme0
hme0 = sy.net.intf.get('hme0')

# Get the IP of hme0
hme0.ipaddress
'192.168.2.2'

# Check if hme0 is up
hme0.is_up
True

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

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

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

Developing

The repository path for sy is located at http://github.com/afajl/sy. Clone with git by typing:

$ git clone http://github.com/afajl/sy.git

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.

Testing

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.

Documentation

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

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.3dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sy-0.3-py2.5.egg (54.7 kB) Copy SHA256 Checksum SHA256 2.5 Egg Jun 14, 2011

Supported By

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