Skip to main content

A package to print and execture bash files

Project description


from bashify import bashify

lines = ["test=$(service mongod status)", "echo 'test'", "echo $test"]
name = "test"

b = bashify(name, lines)

b2 = bashify()

b2.printBashFile(name, lines)

Allows you to create and execute shell scripts with a list of lines to add to the shell script. Can make intefacing with a system feel more natural and requires less knowledge of the nuances of python's system interfaces. Output is returned to the calling shell, so, you will need to echo your output to a file and read from there. Support for this will be added in future versions.

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 bashify, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size bashify-0.1.4-py3-none-any.whl (2.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bashify-0.1.4.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page