Skip to main content

pshlib

Causal embedding of shell commands into python code.

Example

You can break single long bash lines into nested python like multi-line statements:

    res = psh(
    'VAR=world',
    """
        echo This is
            a multiline hello
            $VAR!
    """,
    ).output
    print(res)
    excepted = 'This is a multiline hello world!\n'
    assert excepted == res

Installation

with pip:

pip install pshlib

with poetry:

poetry add git+https://gitlab.com:ewiger/pshlib.git

License

Licensed under MIT. See LICENSE for details.

Publish

poetry publish --build

Metadata

Release files for pshlib 0.1.1

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

Source distribution (sdist)

Source distribution for pshlib 0.1.1
File Size Uploaded Provenance
pshlib-0.1.1.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / pshlib-0.1.1.tar.gz

Download URL pshlib-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
432938aaa5eb9139bb9692854f30d33ec3dee078fdab72ebe8c86a8d90b4f14a
BLAKE2b-256 checksum
How to use checksums
222bb89ddf566e824f6a3d1d8435ee5e86a459e19e3272a69419800ccccadbd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.9.5 Darwin/21.6.0

Release files / pshlib-0.1.1-py3-none-any.whl

Download URL pshlib-0.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9f258439fe89d53c1bceb9a0eb4023765e79b40458c951a4f23f6788956f0e2
BLAKE2b-256 checksum
How to use checksums
d1efdb883f61d3fc6db9fc6b96d7a57c3a65abe6b7c431126e1cbbacf0d8719b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.9.5 Darwin/21.6.0

Security for pshlib 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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