Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Command and Rule over your Shell

Project description

## What is Sultan?

Sultan is an interface to Bash from Python. Shell commands get to the point of
what you want them to do. For example,

sudo yum install tree

would install `tree` on your local machine. However, we normally access command
line utilities like `yum`, via bash, and Bash is just not as nice as Python.
Python's beautiful syntax make code readable and easy to maintain far more than

Bash is great for small scripts, but when we get complex scripts, Bash just
gets very tough to use. This is why Sultan was created.

Sultan allows you to run bash commands from inside Python using simple function
calls. Here is a quick example to install tree via Sultan.

from sultan.api import Sultan

def install_tree():
s = Sultan()
s.sudo("yum install -y tree").run()

Project details

Download files

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

Files for sultan, version 0.1.13
Filename, size File type Python version Upload date Hashes
Filename, size sultan-0.1.13.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page