py-whelk: Import py-whelk-2.7.1 as wip/py-whelk

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...:"))
This commit is contained in:
Leonardo Taccari 2017-12-31 23:22:56 +01:00
parent 92e2775d04
commit 9e9a4bba84
5 changed files with 53 additions and 0 deletions

View File

@ -3820,6 +3820,7 @@ SUBDIR+= py-webkit
SUBDIR+= py-weblib
SUBDIR+= py-weboob
SUBDIR+= py-websocket
SUBDIR+= py-whelk
SUBDIR+= py-wifite
SUBDIR+= py-willow
SUBDIR+= py-wordpress-xmlrpc

13
py-whelk/DESCR Normal file
View File

@ -0,0 +1,13 @@
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...:"))

16
py-whelk/Makefile Normal file
View File

@ -0,0 +1,16 @@
# $NetBSD$
DISTNAME= whelk-2.7.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=w/whelk/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://seveas.github.io/whelk/
COMMENT= Pretending python is a shell
LICENSE= zlib
USE_LANGUAGES= # none
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"

17
py-whelk/PLIST Normal file
View File

@ -0,0 +1,17 @@
@comment $NetBSD$
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/whelk/__init__.py
${PYSITELIB}/whelk/__init__.pyc
${PYSITELIB}/whelk/__init__.pyo
${PYSITELIB}/whelk/_subprocess.py
${PYSITELIB}/whelk/_subprocess.pyc
${PYSITELIB}/whelk/_subprocess.pyo
${PYSITELIB}/whelk/subprocess_32.py
${PYSITELIB}/whelk/subprocess_32.pyc
${PYSITELIB}/whelk/subprocess_32.pyo
${PYSITELIB}/whelk/subprocess_33.py
${PYSITELIB}/whelk/subprocess_33.pyc
${PYSITELIB}/whelk/subprocess_33.pyo
${PYSITELIB}/whelk/subprocess_34.py
${PYSITELIB}/whelk/subprocess_34.pyc
${PYSITELIB}/whelk/subprocess_34.pyo

6
py-whelk/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (whelk-2.7.1.tar.gz) = f14c107e2567311154ffe92f03ff52bc81fb43b9
RMD160 (whelk-2.7.1.tar.gz) = 81671f8c06f7efdd30c3c95cb95ee8449c8bec5a
SHA512 (whelk-2.7.1.tar.gz) = e5a912e38cc453209b8131086441aa8e684fc5b99573a86d0e196e566d9508986f22535cc42bff85a8ac365648bb20e9aa670182412b5c20a060b224feeae701
Size (whelk-2.7.1.tar.gz) = 69346 bytes