{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Provides a Python interface to the Ghostscript C-API using ctypes, enabling PostScript and PDF processing through both low-level and high-level APIs.","skillfed_tags":["pdf-processing","postscript","ctypes-wrapper"],"use_cases":["Convert PostScript files to PDF or other formats programmatically within a Python application.","Process PDF files using Ghostscript operations (rendering, merging, optimization) from Python code.","Build document processing pipelines that need PostScript interpretation or PDF manipulation.","Automate batch conversion of PostScript documents to other formats in a Python workflow.","Embed Ghostscript functionality in a larger Python application without shelling out to the command line."],"what_it_does":"python-ghostscript wraps the Ghostscript C-API using Python's ctypes module, allowing you to invoke Ghostscript functionality directly from Python code. It provides both a low-level interface for direct C-API calls and a higher-level Pythonic API for common tasks like PostScript-to-PDF conversion. The package is intended for developers and requires an external Ghostscript installation (version 9.0.8 or higher) on the system.\n\nYou use it by instantiating a Ghostscript object with command-line arguments, similar to calling the Ghostscript command-line tool from Python. It supports processing files or passing document strings directly. The package has no Python runtime dependencies but depends on ctypes (part of the standard library) and the Ghostscript C library being available on your system.","worth_installing":"Yes, if you need PostScript or PDF processing in Python and can install Ghostscript separately. The package is stable and has low install friction. However, the aging maintenance status (443 days since last release) and GPL-3.0-or-later copyleft license warrant careful consideration of your project's licensing constraints. Not suitable for projects that cannot accept GPLv3 obligations."},"id":"ghostscript","links":{"html":"https://skillfed.io/packages/ghostscript","md":"https://skillfed.io/packages/ghostscript.md","pypi":"https://pypi.org/project/ghostscript/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-05-28","license_spdx":null,"license_treatment":"copyleft","name":"ghostscript","python_support":"unspecified","summary":"Interface to the Ghostscript C-API, both high- and low-level, based on ctypes"},"popularity":{"monthly_downloads":391619,"position":7014,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.1"}
