box2d-py
Python Bindings for Box2D v3 using CFFI
Python bindings for the Box2D physics engine version 3. Provides Pythonic access to Box2D's feature set.
Installation
Install from source using pip
pip install "git+https://github.com/giorgosg/box2d-py.git"
To include the testbed:
pip install "box2d-python[testbed] @ git+https://github.com/giorgosg/box2d-py.git"
Or Install from pypi:
pip install box2d-python[testbed]
Running the Testbed
box2d-testbed
Example Usage
from box2d import World, Vec2
# Create physics world
world = World(gravity=(0, -9.81))
# Create static ground body
ground = world.new_body().static().position((0, -5)).box(1, 10).build()
# Create dynamic bodies
bodybuilder = world.new_body().dynamic().box(0.5, 0.5)
bodies = [bodybuilder.position((x, 5)).build() for x in range(-5, 5)]
# Simulation loop
for _ in range(60):
world.step(1/60, 4)
Development Status
⚠️ Early development preview - API subject to change
Currently supports some of the Box2D v3.0 functionality with active development ongoing.
Metadata
Release files for box2d-python 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 9.7 MB
Release files / box2d_python-0.1.2-cp313-cp313-win_amd64.whl
| Download URL | box2d_python-0.1.2-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 306.6 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
95e2fb1ff657eaa4b97348ceb8830da977468a91171536ee229df460a6478bac
|
|
BLAKE2b-256 checksum How to use checksums |
53975a8c6f570497aaa9444b70abbdb510ea7592da735e14d568f4cccbb30308
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | box2d_python-0.1.2-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
f545d6b02ede15789f5285f40415b0571333f60cb8fbeeb24935b9f2aa2fecfd
|
|
BLAKE2b-256 checksum How to use checksums |
158171b3a48004294269dd85a65676725625321107f798c6f49e585cb0291334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp313-cp313-musllinux_1_2_i686.whl
| Download URL | box2d_python-0.1.2-cp313-cp313-musllinux_1_2_i686.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
1cf021f75d8cca9cbd911cea07b32cb9fb1f0826d6d964c2efcf618bc238f700
|
|
BLAKE2b-256 checksum How to use checksums |
2ce9a8445f68d0d9e772f30dc6d74c0a88958a760e01b44033897e6696340494
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | box2d_python-0.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 539.8 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
653f7d250303db3b579f9d26f4e4ec232a24619632ec9b873d1a1209044519af
|
|
BLAKE2b-256 checksum How to use checksums |
16627f7e31bbb05546e62a27e3897307f5f7cfb8a038159b4741aa08438cb705
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | box2d_python-0.1.2-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 495.4 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-32 |
|
SHA-256 checksum How to use checksums |
2964dfffc81aad12299b7b3b51a02f1e40129d5d97b320d8b69c264bd7c869cf
|
|
BLAKE2b-256 checksum How to use checksums |
49d8c2a12694c594764d2fc6dea37ad836ce72114514ec9e0e1fddcf1d5be320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | box2d_python-0.1.2-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 280.6 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c1a940f8fe654a25244be177b3c1763dc579f11009f012264d9bdd1e9dc0e4d3
|
|
BLAKE2b-256 checksum How to use checksums |
b023d11b84c4e73a584bc78c45b6435fd3bb1271dfcee2c41c4ec5776ec97f5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp312-cp312-win_amd64.whl
| Download URL | box2d_python-0.1.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 306.6 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8ca63aaeb357dc0a7fbf6a4b7835ecddb756b04ccd80ceb561e3608d410e29c2
|
|
BLAKE2b-256 checksum How to use checksums |
c8522c56e10c82d59f27cd383fc5fdd9b9c7ba1ede8cacb44c332ed5bc889e25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | box2d_python-0.1.2-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
2dc6e2f350f621eb0ba003410914fa31295a70b0c46df377be4672cd797a83a1
|
|
BLAKE2b-256 checksum How to use checksums |
0dd5f87916b2e9def32d8586b07b753753c612e2030db3ba06a69a2ffd03ad1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp312-cp312-musllinux_1_2_i686.whl
| Download URL | box2d_python-0.1.2-cp312-cp312-musllinux_1_2_i686.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
8dc8683fd57276d288efda01d1dfbd0291c67a7dccabc263012f1c29c2a7762d
|
|
BLAKE2b-256 checksum How to use checksums |
97631b240bc1052aa45fff1af1e0f5ff3001f46c0534c7242d720010fdf11d17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | box2d_python-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 540.0 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
fa80352fd8644438bf700099029347eea5d5af56cb13edb7263400b5183cfbbf
|
|
BLAKE2b-256 checksum How to use checksums |
de56cd17bdd9f58fcac7a4b46be07f687b73eb1d7323ac0b71e32cac30d85314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | box2d_python-0.1.2-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 495.4 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-32 |
|
SHA-256 checksum How to use checksums |
cc143ba9926d50de7ba78575c05a9b149ce575d9d5ba108b73ca831284d3c042
|
|
BLAKE2b-256 checksum How to use checksums |
226c91a900c7b277318caf2406d25cd98ba28878368774d157cb659b2a437e0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / box2d_python-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | box2d_python-0.1.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 280.6 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
75209e5eb03cb8844b62346a39e54b39f5ebafc5c050dc923c8c09b628a0c252
|
|
BLAKE2b-256 checksum How to use checksums |
548eaec041f805c6108e1f4a26b60e7209ced622771e15ebe38cc40cf9935525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for box2d-python 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.