Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A pythonic framework to automate system administration
Python
Branch: master

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>

Something went wrong with that request. Please try again.