Use sh-style piping in Python
Project description
pybsh
Use bash-like syntax for running subcommands in Python
from pybsh import cmd, go
cmd() | "echo hi" | "sed 's/hi/bye/g'" > go
Installation
pip install pybsh
From Source
git clone https://github.com/driazati/pybsh.git
cd pybsh
pip install --editable .
API
???
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybsh-1.0.0.tar.gz
(1.8 kB
view details)
Built Distribution
pybsh-1.0.0-py3-none-any.whl
(1.9 kB
view details)
File details
Details for the file pybsh-1.0.0.tar.gz
.
File metadata
- Download URL: pybsh-1.0.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110e4da855dcec64c14108f5ebab66c67e75c044eda753003e6bd169bb96eeed |
|
MD5 | c24f3c20df564d94e78b5497f1714995 |
|
BLAKE2b-256 | 15ff6678f03a7491e1fbd74616b3b91355427d14d0f92511cdb780d504879b04 |
File details
Details for the file pybsh-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pybsh-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca9579167a1fb6fe6cce14e1b2c5761f7d96e7938121e15416347b646b9dc7f |
|
MD5 | eec404636cff98ff7a93150bdd04621c |
|
BLAKE2b-256 | 0d32afe436807456e6766ace6ba6b812aabec48ba1a662503cd65c53936c219b |