BSD Ports

wip/py-whelk 2.7.1 NetBSD

Pretending python is a shell

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
License
zlib
Categories
wip, devel, python

Description

We 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...:"))

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/py-whelk && make install clean

Dependencies

Required by 1