pyclipper
Cython wrapper for the C++ translation of the Angus Johnson's Clipper library (ver. 6.4.2)
Decision gist · record as of 2026-08-14
Yes, if you need robust polygon clipping or offsetting. The package is stable, has no known vulnerabilities, supports current Python versions (3.10–3.14), and is widely downloaded (11.7M monthly). The aging maintenance status (256 days since release) is a minor concern but not a blocker; the repository is active and the underlying algorithm is mature. Install friction is moderate due to compilation, but prebuilt wheels are available for common platforms. Breaking changes in version 1.0.0 (SCALING_FACTOR removal) may affect legacy code, so review migration notes if upgrading from 0.9.3b0.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; compiled extension may require build tools if installing from source rather than a prebuilt wheel.
- Medium install friction due to compiled C++ extension; however, prebuilt wheels are available for Python 3.10–3.14 across Windows, macOS, and Linux platforms.
- Package is aging (256 days since last release) but repository remains active with 261 stars and no archived status.
License · maintenance · safety
MIT (permissive) — MIT license (permissive); the underlying Clipper library is Boost Software License (freeware for open source and commercial use). No licensing restrictions on your use of pyclipper.
last release 2025-12-01 (256 days) · last repo commit 2025-12-01 · 261 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 11,792,148 downloads/mo, #1,361 on PyPI
Alternatives
Verify before relying
pip install pyclipper
import pyclipper
pc = pyclipper.Pyclipper()
pc.AddPath(((190, 210), (240, 210), (240, 130), (190, 130)), pyclipper.PT_CLIP, True)
pc.AddPaths((((180, 200), (260, 200), (260, 150), (180, 150)),), pyclipper.PT_SUBJECT, True)
solution = pc.Execute(pyclipper.CT_INTERSECTION, pyclipper.PFT_EVENODD, pyclipper.PFT_EVENODD)- Whether the package is actively maintained going forward (last release 256 days ago, status marked 'aging').
- Performance characteristics and scalability limits for large polygon datasets or complex clipping operations.
- Availability of documentation beyond the README and GitHub wiki.
What it is and what it does
Pyclipper is a Cython wrapper around Angus Johnson's Clipper library (version 6.4.2), a C++ polygon clipping and offsetting engine. It exposes the core clipping operations—intersection, union, difference, and exclusive-or—as well as polygon offsetting, using Vatti's clipping algorithm for numerical robustness. The library works with integer coordinates internally to avoid floating-point precision issues; helper functions scale_to_clipper() and scale_from_clipper() are provided to convert between floating-point and integer representations.
The package is designed for developers working with computational geometry, graphics, or CAD-like applications. It has no runtime dependencies beyond Python itself. The API closely mirrors the original C++ library's naming conventions, with classes Pyclipper and PyclipperOffset replacing the C++ Clipper and ClipperOffset. Since version 1.0.0, automatic scaling via SCALING_FACTOR was removed to preserve the original library's numerical robustness, which is a breaking change from earlier versions.
Use it for
- Compute intersections, unions, or differences of polygon regions in graphics or GIS applications.
- Offset polygon boundaries inward or outward by a fixed distance for buffer operations.
- Perform boolean operations on closed polygons in CAD or design software.
- Combine multiple polygon paths with clipping rules (even-odd or non-zero winding) in computational geometry.
- Scale and clip line segments or polygons while maintaining numerical precision in scientific applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need robust polygon clipping or offsetting.
The package is stable, has no known vulnerabilities, supports current Python versions (3.10–3.14), and is widely downloaded (11.7M monthly). The aging maintenance status (256 days since release) is a minor concern but not a blocker; the repository is active and the underlying algorithm is mature. Install friction is moderate due to compilation, but prebuilt wheels are available for common platforms. Breaking changes in version 1.0.0 (SCALING_FACTOR removal) may affect legacy code, so review migration notes if upgrading from 0.9.3b0.
Install
pyclipper on PyPI
Before you install
Medium install friction due to compiled C++ extension; however, prebuilt wheels are available for Python 3.10–3.14 across Windows, macOS, and Linux platforms. Package is aging (256 days since last release) but repository remains active with 261 stars and no archived status.
Requires Python 3.10 or later; compiled extension may require build tools if installing from source rather than a prebuilt wheel.
License in practice
MIT license (permissive); the underlying Clipper library is Boost Software License (freeware for open source and commercial use). No licensing restrictions on your use of pyclipper.
Quickstart
pip install pyclipper
import pyclipper
pc = pyclipper.Pyclipper()
pc.AddPath(((190, 210), (240, 210), (240, 130), (190, 130)), pyclipper.PT_CLIP, True)
pc.AddPaths((((180, 200), (260, 200), (260, 150), (180, 150)),), pyclipper.PT_SUBJECT, True)
solution = pc.Execute(pyclipper.CT_INTERSECTION, pyclipper.PFT_EVENODD, pyclipper.PFT_EVENODD)
Verify before relying
- Whether the package is actively maintained going forward (last release 256 days ago, status marked 'aging').
- Performance characteristics and scalability limits for large polygon datasets or complex clipping operations.
- Availability of documentation beyond the README and GitHub wiki.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Aging 256 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,792,148 / month, #1,361 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI ApprovedLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: C++Programming Language :: CythonProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Multimedia :: GraphicsTopic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyclipper-1.4.0-cp310-cp310-macosx_10_9_universal2.whl; pyclipper-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl; pyclipper-1.4.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pyclipper-1.4.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; pyclipper-1.4.0-cp310-cp310-win32.whl; pyclipper-1.4.0-cp310-cp310-win_amd64.whl; pyclipper-1.4.0-cp311-cp311-macosx_10_9_universal2.whl; pyclipper-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl; pyclipper-1.4.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pyclipper-1.4.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; pyclipper-1.4.0-cp311-cp311-win32.whl; pyclipper-1.4.0-cp311-cp311-win_amd64.whl; pyclipper-1.4.0-cp312-cp312-macosx_10_13_universal2.whl; pyclipper-1.4.0-cp312-cp312-macosx_10_13_x86_64.whl; pyclipper-1.4.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pyclipper-1.4.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; pyclipper-1.4.0-cp312-cp312-win32.whl; pyclipper-1.4.0-cp312-cp312-win_amd64.whl; pyclipper-1.4.0-cp313-cp313-macosx_10_13_universal2.whl; pyclipper-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl
Tags
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 › “polygon clipping intersection union”
- pyclipperPyclipper performs polygon clipping operations (intersection, union,…
- skia-pathopsPython bindings for Google Skia's Path Ops module, enabling boolean…
- quadrilateral-fitterFits the smallest-area quadrilateral that contains all points from a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
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.
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.
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.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
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…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also skia-pathops · shapely-polyskel · mapbox-earcut · gdstk · exactextract · shapely · pygeoif · svgpathtools · descartes