Skip to main content

A package to print and execture bash files

Project description

Use:

from bashify import bashify

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

b = bashify(name, lines)
b.runExecutable()

b2 = bashify()

b2.printBashFile(name, lines)
b2.makeExecutable(name)
b2.runExecutable(name)

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.

https://pypi.org/project/bashify/

https://github.com/UniWrighte/bashify

Project details


Download files

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

Source Distribution

bashify-0.1.4.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

bashify-0.1.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file bashify-0.1.4.tar.gz.

File metadata

  • Download URL: bashify-0.1.4.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for bashify-0.1.4.tar.gz
Algorithm Hash digest
SHA256 52a21bfcfa128d2d08b7a279db936c48cfadf17996e17b6935c7a18bcd37e129
MD5 7765ffdc9786025d93e50793eb6a95c7
BLAKE2b-256 baa9241155965789ca96ea3394452fe450d54aa867bf3242102a6056806128f8

See more details on using hashes here.

File details

Details for the file bashify-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: bashify-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for bashify-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 04fd1eb1471fd1e6e9abbc071549c3e33b5216a066e8b8d060735f90266e891a
MD5 bd0e73b2ef6caa1d87c81b231767538a
BLAKE2b-256 0c8160db09266c57f398c8daf63f03507c1d3c917e8e12c5e357413d444b1ea3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page