Skip to main content

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

Metadata

Release files for bashify 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bashify 0.1.4
File Size Uploaded Provenance Actions
bashify-0.1.4.tar.gz 1.7 kB Without provenance Details for bashify-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bashify 0.1.4
File Interpreter ABI Platform Actions
bashify-0.1.4-py3-none-any.whl Python 3 none any Details for bashify-0.1.4-py3-none-any.whl

Total release size: 4.5 kB

Release files / bashify-0.1.4.tar.gz

Download URL bashify-0.1.4.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
52a21bfcfa128d2d08b7a279db936c48cfadf17996e17b6935c7a18bcd37e129
BLAKE2b-256 checksum
How to use checksums
baa9241155965789ca96ea3394452fe450d54aa867bf3242102a6056806128f8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / bashify-0.1.4-py3-none-any.whl

Download URL bashify-0.1.4-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04fd1eb1471fd1e6e9abbc071549c3e33b5216a066e8b8d060735f90266e891a
BLAKE2b-256 checksum
How to use checksums
0c8160db09266c57f398c8daf63f03507c1d3c917e8e12c5e357413d444b1ea3
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for bashify 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page