aeroxis / sultan

Sultan: Command and Rule over your Shell

Home Page:https://sultan.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sultan logo

Command and Rule over your Shell

PyPI Version

Travis Build Status

MIT License

Documentation Status

Sultan now supports Python 2.7+ and 3.0+

Note

Your input is welcome! Please provide your feedback by creating issues on Github

Install

Documentation

Documentation Status

Documentation is available on ReadTheDocs: http://sultan.readthedocs.io/en/latest/

What is Sultan?

Sultan is a Python package for interfacing with command-line utilities, like yum, apt-get, or ls, in a Pythonic manner. It lets you run command-line utilities using simple function calls.

The simplest way to use Sultan is to just call it:

Runs:


The recommended way of using Sultan is to use it in Context Management mode. Here is how to use Sultan with Context Management:

Runs:


What if we want to install this command on a remote machine? You can easily achieve this using context management:

Runs:


If you enter a wrong command, Sultan will print out details you need to debug and find the problem quickly.

Here, the same command was run on a Mac:

Yields:


Want to get started? Simply install Sultan, and start writing your clean code:

pip install --upgrade sultan

If you have more questions, check the docs! http://sultan.readthedocs.io/en/latest/

About

Sultan: Command and Rule over your Shell

https://sultan.readthedocs.io/en/latest/

License:MIT License


Languages

Language:Python 99.9%Language:Makefile 0.1%