Box2D
Python Box2D
Decision gist · record as of 2026-08-14
Yes, if you need a stable, proven 2D physics engine for games or simulations and can tolerate dormancy. Box2D is mature and widely used, with no known vulnerabilities and permissive licensing. However, the last release was in 2020 and maintenance is minimal—if you require active development, bug fixes for modern Python versions, or ongoing support, consider whether an actively maintained alternative better fits your timeline. For existing projects or prototypes, it remains reliable.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a compiled wheel matching your Python version and platform; if no prebuilt wheel is available for your environment, installation will fail unless you can build from source (requires C++ compiler and development headers).
- Medium install friction due to compiled wheels; prebuilt binaries are available for recent Python versions across Windows, macOS, and Linux, but the package is dormant—last release was 2020-04-11 with minimal recent maintenance activity despite an active repository.
License · maintenance · safety
zlib (permissive) — Licensed under zlib (permissive), allowing use in commercial and proprietary projects with minimal restrictions; attribution is typically required but the license imposes no copyleft obligations.
last release 2020-04-11 (2316 days) · last repo commit 2024-11-29 · 511 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 97,059 downloads/mo, #13,174 on PyPI
Alternatives
Verify before relying
pip install Box2D
import Box2D
from Box2D import b2World, b2BodyDef, b2CircleShape
world = b2World(gravity=(0, -10))
body_def = b2BodyDef(position=(0, 0))
body = world.CreateBody(body_def)- Whether prebuilt wheels are available for Python versions beyond those listed in friction evidence or for other architectures.
- Current state of the repository's build infrastructure and whether new wheels are being generated for recent Python releases.
- Whether the dormant status affects stability or introduces compatibility issues with modern Python ecosystems.
What it is and what it does
Box2D is a Python wrapper around the Box2D physics engine, a mature C++ library for simulating 2D rigid-body dynamics. It provides tools to create worlds, bodies, shapes (circles, polygons, line segments), and joints (revolute, prismatic, wheel, and others), making it suitable for building games, physics simulations, and interactive visualizations.
The package ships with a testbed containing dozens of example scenarios demonstrating collision handling, joint mechanics, and various physics phenomena. To visualize simulations, you pair Box2D with a rendering backend such as pygame, pyglet, or OpenCV. The library has no runtime dependencies—it's a self-contained binding—but installation requires a prebuilt wheel or a C++ compiler to build from source.
Use it for
- Build 2D games with realistic physics-based movement, collisions, and joint constraints.
- Create physics simulations and educational demonstrations of mechanics, gravity, and collision behavior.
- Prototype interactive physics-based visualizations paired with pygame or pyglet for rendering.
- Implement ragdoll or articulated-body systems using revolute and prismatic joints.
- Test collision detection and response algorithms in a well-established physics framework.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a stable, proven 2D physics engine for games or simulations and can tolerate dormancy.
Box2D is mature and widely used, with no known vulnerabilities and permissive licensing. However, the last release was in 2020 and maintenance is minimal—if you require active development, bug fixes for modern Python versions, or ongoing support, consider whether an actively maintained alternative better fits your timeline. For existing projects or prototypes, it remains reliable.
Install
box2d on PyPI
Before you install
Medium install friction due to compiled wheels; prebuilt binaries are available for recent Python versions across Windows, macOS, and Linux, but the package is dormant—last release was 2020-04-11 with minimal recent maintenance activity despite an active repository.
Requires a compiled wheel matching your Python version and platform; if no prebuilt wheel is available for your environment, installation will fail unless you can build from source (requires C++ compiler and development headers).
License in practice
Licensed under zlib (permissive), allowing use in commercial and proprietary projects with minimal restrictions; attribution is typically required but the license imposes no copyleft obligations.
Quickstart
pip install Box2D
import Box2D
from Box2D import b2World, b2BodyDef, b2CircleShape
world = b2World(gravity=(0, -10))
body_def = b2BodyDef(position=(0, 0))
body = world.CreateBody(body_def)
Verify before relying
- Whether prebuilt wheels are available for Python versions beyond those listed in friction evidence or for other architectures.
- Current state of the repository's build infrastructure and whether new wheels are being generated for recent Python releases.
- Whether the dormant status affects stability or introduces compatibility issues with modern Python ecosystems.
Package facts
| License | zlib permissive |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 2,316 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,059 / month, #13,174 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: Box2D-2.3.10-cp27-cp27m-win32.whl; Box2D-2.3.10-cp310-cp310-macosx_10_9_x86_64.whl; Box2D-2.3.10-cp310-cp310-macosx_11_0_arm64.whl; Box2D-2.3.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; Box2D-2.3.10-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; Box2D-2.3.10-cp310-cp310-musllinux_1_2_i686.whl; Box2D-2.3.10-cp310-cp310-musllinux_1_2_x86_64.whl; Box2D-2.3.10-cp310-cp310-win32.whl; Box2D-2.3.10-cp310-cp310-win_amd64.whl; Box2D-2.3.10-cp311-cp311-macosx_10_9_x86_64.whl; Box2D-2.3.10-cp311-cp311-macosx_11_0_arm64.whl; Box2D-2.3.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; Box2D-2.3.10-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl; Box2D-2.3.10-cp311-cp311-musllinux_1_2_i686.whl; Box2D-2.3.10-cp311-cp311-musllinux_1_2_x86_64.whl; Box2D-2.3.10-cp311-cp311-win32.whl; Box2D-2.3.10-cp311-cp311-win_amd64.whl; Box2D-2.3.10-cp312-cp312-macosx_10_13_x86_64.whl; Box2D-2.3.10-cp312-cp312-macosx_11_0_arm64.whl; Box2D-2.3.10-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_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 › “box2d python binding”
- Box2DBox2D is a Python binding to the Box2D C++ physics engine, providing…
- gymnasiumGymnasium provides a standard Python API for building and testing…
- shiboken2Shiboken2 provides Python access to metadata and utilities for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also pymunk · pybullet · Panda3D · chess · ursina · mujoco · quadrants · contourpy · dm-control · imgui