Path to this page:
./
wip/py-whelk,
Pretending python is a shell
Branch: CURRENT,
Version: 2.7.1,
Package name: py312-whelk-2.7.1,
Maintainer: pkgsrc-usersWe all like python for scripting, because it's so much more powerful
than a shell. But sometimes we really need to call a shell command
because it's so much easier than writing yet another library in
python or adding a dependency:
from whelk import shell
shell.zgrep("-r", "downloads", "/var/log/httpd")
# Here goes code to process the log
You can even pipe commands together:
from whelk import pipe
pipe(pipe.getent("group") | pipe.grep(":1...:"))
Required to run:[
lang/python37]
Required to build:[
pkgtools/cwrappers]
Master sites:
RMD160: 81671f8c06f7efdd30c3c95cb95ee8449c8bec5a
Filesize: 67.721 KB
Version history: (Expand)
- (2024-09-19) Package has been reborn
- (2024-09-19) Updated to version: py312-whelk-2.7.1
- (2024-09-15) Package deleted from pkgsrc
- (2023-02-13) Updated to version: py310-whelk-2.7.1
- (2023-02-13) Package has been reborn
- (2021-10-08) Updated to version: py39-whelk-2.7.1