Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Hartmut Goebel Newsgroups: comp.lang.python.announce Subject: [ANN] python-ghostscript 0.6 Date: Tue, 16 Jan 2018 23:40:17 +0100 Organization: crazy-compilers.com Lines: 83 Approved: python-announce-list@python.org Message-ID: References: <45d9ca3d-d24e-b17e-71e4-cc4945f2b1db@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de yUS/0N3h1wO/YS1SpeAbsgilNewTRXKKuMHC4cuyrH1Q== Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'sys': 0.04; 'args': 0.05; 'git': 0.05; 'fixes': 0.07; 'tests.': 0.07; 'unittest': 0.07; '(using': 0.09; 'callback': 0.09; 'high-level': 0.09; 'implements': 0.09; 'low-level': 0.09; 'subject:ANN': 0.09; 'url-ip:184.73/16': 0.09; 'interpreter': 0.12; 'python': 0.15; '"-c",': 0.16; '0.6': 0.16; ':license:': 0.16; '``code``': 0.16; 'compilers': 0.16; 'from:addr:h.goebel': 0.16; 'from:name:hartmut goebel': 0.16; 'gitlab.': 0.16; 'gnu/linux.': 0.16; 'goebel': 0.16; 'hartmut': 0.16; 'received:192.168.110': 0.16; 'received :goebel-consult.de': 0.16; 'received:m-online.net': 0.16; 'received:mail-out.m-online.net': 0.16; 'received:mail.m-online.net': 0.16; 'received:mail.mnet- online.de': 0.16; 'received:mnet-online.de': 0.16; 'skipped': 0.16; 'stream.': 0.16; 'url-ip:52.167.219.168/32': 0.16; 'url- ip:52.167.219/24': 0.16; 'url-ip:52.167/16': 0.16; 'url.': 0.16; 'url:gitlab': 0.16; 'accepts': 0.17; 'attribute': 0.17; 'bug': 0.17; '(for': 0.20; 'subject:python': 0.20; 'skip:` 10': 0.20; 'changes': 0.21; 'switch': 0.21; 'actual': 0.21; 'to:2**1': 0.23; 'language': 0.24; 'import': 0.24; 'header:User-Agent:1': 0.25; 'environment,': 0.25; 'url-ip:151.101.0.223/32': 0.26; 'url- ip:151.101.128.223/32': 0.26; 'url-ip:151.101.192.223/32': 0.26; 'url-ip:151.101.64.223/32': 0.26; 'url-ip:151.101.0/24': 0.26; 'url-ip:151.101.128/24': 0.26; 'url-ip:151.101.192/24': 0.26; 'url-ip:151.101.64/24': 0.26; "doesn't": 0.26; 'skip:" 20': 0.28; 'thanks.': 0.29; 'announce': 0.31; 'skip:` 20': 0.31; 'subject:] ': 0.31; '0.5': 0.32; 'fork': 0.32; 'impossible': 0.32; "i'm": 0.33; 'minimum': 0.34; 'url-ip:151.101/16': 0.34; 'url-ip:151/8': 0.34; 'display': 0.35; 'integration': 0.35; 'too.': 0.35; 'but': 0.36; 'url-ip:184/8': 0.37; 'skip:g 30': 0.37; 'received:192.168': 0.37; 'interface': 0.37; 'gnu': 0.37; 'received:192': 0.37; 'thought': 0.38; 'example': 0.38; 'basic': 0.39; 'url:python': 0.39; 'url:org': 0.39; 'subject:-': 0.40; 'subject:[': 0.40; 'your': 0.60; 'c-api': 0.61; '3.x': 0.62; 'numeric': 0.62; 'sfxlen:3': 0.62; 'received:93': 0.62; 'here': 0.65; 'integrated': 0.66; 'latest': 0.67; 'note:': 0.69; '8bit%:100': 0.69; 'license': 0.69; 'avoid': 0.71; 'matter': 0.71; 'continuous': 0.75; '2.7.': 0.84; 'pdf.': 0.84; 'skip:\xc2 30': 0.84; 'received:192.168.6': 0.93 X-Virus-Scanned: amavisd-new at mnet-online.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Content-Language: en-US X-Mailman-Approved-At: Wed, 17 Jan 2018 10:30:37 -0500 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <45d9ca3d-d24e-b17e-71e4-cc4945f2b1db@crazy-compilers.com> Xref: csiph.com comp.lang.python.announce:2739 I'm pleased to announce the new release vor python-ghostscript:                  python-ghostscript 0.6 A Python-Interface to the Ghostscript C-API using ctypes :License: GNU Public License v3 (GPLv3) :Author:  Hartmut Goebel :Homepage: https://gitlab.com/pdftools/python-ghostscript :Download: https://pypi.python.org/pypi/ghostscript `Ghostscript`__, is a well known interpreter for the PostScript language and for PDF. This package implements a interface to the Ghostscript C-API using `ctypes`__. Both a low-level and a pythonic, high-level interface are provided. __ http://www.ghostscript.com/ __ http://docs.python.org/library/ctypes.html This package is currently tested only under GNU/Linux. Please report whether it works in your environment, too. Thanks. Latest Changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please note: Version 0.5 has been skipped to avoid version conflicts with the fork `python3-ghostscript`. All changes of that fork are integrated into this release.   * Add support for Python 3.x (tested with Python 3.4).     Minimum required Python version is now 2.7.   * Add support for display callback and an example program     using it. Thanks to Lasse Fister.   * Add context-interface (for the ``with``-statement).   * ``GhostscriptError`` now has an attribute ``code`` holding     the numeric error-code.   * ``Ghostscript()`` now accepts keyword-arguments ``stdin``,     ``stdout``, ``stderr`` for setting the respective stream. This was     already implementd in version 0.4.1, but not documented.   * Add unittest suite (using pytest).   * Several bug fixes and smaller changes.   * Switch version control to git and move project to gitlab. See     Readme-file for the new URL.   * Set up continuous integration tests. Example ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here is an example for how to use the high-level interface of `python-ghostscript`. This implements a very basic ps2pdf-tool::   import sys   import ghostscript   args = [       "ps2pdf",    # actual value doesn't matter       "-dNOPAUSE", "-dBATCH", "-dSAFER",       "-sDEVICE=pdfwrite",       "-sOutputFile=" + sys.argv[1],       "-c", ".setpdfwrite",       "-f",  sys.argv[2]       ]   ghostscript.Ghostscript(*args) -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |