# viblo/pymunk

Pymunk is a easy-to-use pythonic 2d physics library that can be used whenever  you need 2d rigid body physics from Python

Repository: https://github.com/viblo/pymunk
Canonical: https://ross.abutalabs.com/products/pymunk
Homepage: http://www.pymunk.org
Language: Python
License: MIT
License Family: permissive
Topics: python, physics-2d, library, pygame, pyglet, physics-engine, physics-simulation, python-library
Last push: 2026-07-06T06:53:29+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 54, longevity 100
- inputs: {"age_days": 4718, "days_push": 58, "days_rel": 304, "gap_med": 26, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1061, forks 193 (observed 2026-08-28T04:03:25.947773+00:00)

## What it is
Pymunk is a Pythonic 2D rigid body physics library built on top of Munk2D (a fork of Chipmunk2D). It provides easy-to-use physics simulation for games, demos, and scientific simulations from Python.

## Use cases
- add 2d physics to a python game
- simulate rigid bodies with gravity in python
- collision detection between shapes in pygame
- run a physics simulation for a demo or research paper
- build a breakout or platformer game with python
- simulate physics for a self-driving car simulation

## When to choose
- you need 2D rigid body physics in a Python project
- you use pygame, pyglet, or kivy and want physics integration
- you want a mature, MIT-licensed physics library with 15+ years of development
- you need wheels for desktop, mobile, or web (pyodide) targets

## When to avoid
- you need 3D physics simulation
- you need a physics engine in a non-Python language
- you require thread-safe physics stepping in free-threaded Python

## Facets
- artifact type: library
- maturity: stable
- function: simulation, game-engine, graphics
- domain: simulation, cross-platform
- platform: python, cross-platform, wasm
- tags: 2d-physics, rigid-body-physics, chipmunk2d, pygame, pyglet, collision-detection, cffi, game-development, mobile

## Member repositories
- viblo/pymunk (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.947773+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:52.625433+00:00, confidence not recorded.
  - readme: https://github.com/viblo/pymunk (fetched 2026-08-28T04:03:25.947773+00:00, sha cdb0ecb1151d)
  - homepage: http://www.pymunk.org (fetched 2026-08-29T12:58:54.808996+00:00, sha 43578b41ab49)
  - site_page: http://www.pymunk.org/en/latest/installation.html (fetched 2026-08-29T12:58:54.811481+00:00, sha fc617bbb0c65)
  - site_page: http://www.pymunk.org/en/latest/changelog.html (fetched 2026-08-29T12:58:54.813631+00:00, sha df8f0495cd2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
