$npx skillfedfor your agent

ghostscript

Interface to the Ghostscript C-API, both high- and low-level, based on ctypes

With conditionsPyPI Python ModulesReleased May 2025391.6K downloads / moGPL-3.0-or-laterPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ghostscript-0.8.1-py3-none-any.whl
v0.8.1 · released 2025-05-28

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Ghostscript (system library) version 9.0.8 or higher to be installed separately; ctypes is used to call the Ghostscript C-API.
  • Low install friction as a pure-Python wheel.
  • Maintenance is aging (443 days since last release), though the package is marked Production/Stable and has been active since 2010.

License · maintenance · safety

GPL-3.0-or-later (copyleft) — Licensed under GPL-3.0-or-later (copyleft). Any code linking this package must comply with GPLv3 terms, including potential source code disclosure obligations.

last release 2025-05-28 (443 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 391,619 downloads/mo, #7,014 on PyPI

Verify before relying

import ghostscript

args = ["ps2pdf", "-dNOPAUSE", "-dBATCH", "-dSAFER",
        "-sDEVICE=pdfwrite", "-sOutputFile=out.pdf", "-f", "input.ps"]
ghostscript.Ghostscript(*args)
  • Current compatibility with Ghostscript versions beyond 9.0.8 and whether all tested Python versions (3.6–3.13) remain actively supported.
  • Whether the package works reliably on non-Linux platforms, as documentation notes testing is limited to GNU/Linux.
Same gist for agents: .md · .json

What it is and 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.

You 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

ghostscript on PyPI

Before you install

Low install friction as a pure-Python wheel. Maintenance is aging (443 days since last release), though the package is marked Production/Stable and has been active since 2010.

Requires Ghostscript (system library) version 9.0.8 or higher to be installed separately; ctypes is used to call the Ghostscript C-API.

License in practice

Licensed under GPL-3.0-or-later (copyleft). Any code linking this package must comply with GPLv3 terms, including potential source code disclosure obligations.

Quickstart

import ghostscript

args = ["ps2pdf", "-dNOPAUSE", "-dBATCH", "-dSAFER",
        "-sDEVICE=pdfwrite", "-sOutputFile=out.pdf", "-f", "input.ps"]
ghostscript.Ghostscript(*args)

Verify before relying

  • Current compatibility with Ghostscript versions beyond 9.0.8 and whether all tested Python versions (3.6–3.13) remain actively supported.
  • Whether the package works reliably on non-Linux platforms, as documentation notes testing is limited to GNU/Linux.

Package facts

LicenseGPL-3.0-or-later copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 443 days since the last release
First released
Downloads391,619 / month, #7,014 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Evidence: ghostscript-0.8.1-py3-none-any.whl

Tags

Capabilities
ghostscript python interfacepdf postscript processingghostscript ctypes wrapperps2pdf conversionpdf manipulation pythonpostscript interpreterghostscript bindings
Topics
pdf-processingpostscriptctypes-wrapper
PyPI keywords
GhostscriptPDFPostscript

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ghostscript python interface”

  • ghostscriptProvides a Python interface to the Ghostscript C-API using ctypes,…
  • treepoemGenerates barcodes and QR codes as image objects by wrapping the…
  • pypdfpypdf is a pure-Python library for reading, splitting, merging,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also treepoem · pydyf · jaraco.windows · CairoSVG · pyprctl · pdfkit · pypdfium2 · pypdftk · pikepdf