Thin convenience wrappers for shelling out commands easily from python
Project description
python-shellout
Thin convenience wrappers for shelling out commands easily from python
Installation
In shell with enough admin rights type
$ git clone https://github.com/Chiel92/python-shellout
$ cd python-shellout
$ python3 setup.py install
Or to obtain the version from PyPI do
$ pip install pyshellout
Example Usage
from pyshellout import get
files=get(r'find . -name "*.cpp" -o -name "*.h" -print0')
for f in files.z:
print(f)
matches=get(r"grep -zZ 'some regex pattern' '{filename}'", filename=f)
print(matches.z)
A more elaborate example can be found on this blog post about automatically archiving merged git branches.
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
pyshellout-0.2.10.zip
(3.0 kB
view details)
File details
Details for the file pyshellout-0.2.10.zip.
File metadata
- Download URL: pyshellout-0.2.10.zip
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619bd505e86303e9128462da7edb7c6d0706616d0054653ce77ecee702b2d3ec
|
|
| MD5 |
fa62fd941567c48650620c99ec2adaf4
|
|
| BLAKE2b-256 |
d3e3df0917db50e61b4f440b8322eacda012248fae770a69ba9e1f22e834b14b
|