Date: Wed, 21 Feb 2018 16:54:18 +0000 (UTC) From: Dan Langille <dvl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r462534 - in head/devel: . py-imgkit Message-ID: <201802211654.w1LGsIUw074038@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dvl Date: Wed Feb 21 16:54:18 2018 New Revision: 462534 URL: https://svnweb.freebsd.org/changeset/ports/462534 Log: Add devel/py-imgkit Python wrapper to convert html to image Added: head/devel/py-imgkit/ head/devel/py-imgkit/Makefile (contents, props changed) head/devel/py-imgkit/distinfo (contents, props changed) head/devel/py-imgkit/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Wed Feb 21 16:36:45 2018 (r462533) +++ head/devel/Makefile Wed Feb 21 16:54:18 2018 (r462534) @@ -4503,6 +4503,7 @@ SUBDIR += py-hypothesis SUBDIR += py-icalendar SUBDIR += py-ice + SUBDIR += py-imgkit SUBDIR += py-incremental SUBDIR += py-inflect SUBDIR += py-iniparse Added: head/devel/py-imgkit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-imgkit/Makefile Wed Feb 21 16:54:18 2018 (r462534) @@ -0,0 +1,20 @@ +# Created by: Dan Langille <dvl@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= imgkit +PORTVERSION= 1.0.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Python wrapper to convert html to image + +LICENSE= MIT + +USES= python +USE_PYTHON= distutils autoplist + +RUN_DEPENDS+= wkhtmltopdf>0:converters/wkhtmltopdf + +.include <bsd.port.mk> Added: head/devel/py-imgkit/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-imgkit/distinfo Wed Feb 21 16:54:18 2018 (r462534) @@ -0,0 +1,3 @@ +TIMESTAMP = 1519226993 +SHA256 (imgkit-1.0.1.tar.gz) = c7cfd4949343aec503353c7bdae6f05ab5b4c79cb9f5153bd5708cd3bf129df7 +SIZE (imgkit-1.0.1.tar.gz) = 9802 Added: head/devel/py-imgkit/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-imgkit/pkg-descr Wed Feb 21 16:54:18 2018 (r462534) @@ -0,0 +1,22 @@ +Python 2 and 3 wrapper for wkhtmltoimage utility to convert HTML to IMG +using Webkit. + +Simple example: + +import imgkit + + imgkit.from_url('http://google.com', 'out.jpg') + imgkit.from_file('test.html', 'out.jpg') + imgkit.from_string('Hello!', 'out.jpg') + +You can pass a list with multiple URLs or files: + + imgkit.from_url(['google.com', 'yandex.ru', 'engadget.com'], 'out.jpg') + imgkit.from_file(['file1.html', 'file2.html'], 'out.jpg') + +Also you can pass an opened file: + + with open('file.html') as f: + imgkit.from_file(f, 'out.jpg') + +WWW: https://github.com/jarrekk/imgkit
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802211654.w1LGsIUw074038>