A pythonic framework to automate system administration
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
light
.gitignore
README.md
lightfile.py
setup.py

README.md

Light

Light provides a pythonic framework to help automate system administration jobs. Just a simple example::

#!/usr/bin/env python

from light import api
from light import utils

def _do_something():
  run('ls /tmp/')
  with cd('/tmp'):
    sudo('mkdir -p somedir/anotherone/')

  print red('Job done!', bold=True)

light come with commands line built-in like:

ubuntu@ubuntu:~$ rmif
File deleted: colors.py~
File deleted: colors.pyc
File deleted: context_managers.py~
File deleted: context_managers.pyc

ubuntu@ubuntu:~$ rmif -p $HOME -a .txt~
File deleted: README.txt~

* Every command has --help (-h) argument and --version (-v) one too.
ubuntu@ubuntu:~$ rmif --help

Install

To intsall:

Know more about light

  • Run from console: man light

visit <http://light.org>