No project description provided
Project description
geomanpy
Python bindings for glam and wreck — fast geometric/linear-algebra primitives and collision detection, backed by Rust.
geomanpy exposes glam's vectors, quaternions, matrices and affine transforms, plus wreck's collision shapes and broad/narrow-phase queries, as native Python classes. Every type integrates with NumPy and behaves like a dataclass for serialization frameworks.
Features
- Linear algebra —
Vec2,Vec3,Vec4,Quat,Mat3,Mat4,Affine3with the full glam method surface (normalization, projection, interpolation, Euler conversions, projection/view matrices, …). - Collision shapes —
Sphere,Capsule,Cuboid,Cylinder,ConvexPolytope,ConvexPolygon,Line,Ray,LineSegment,Plane,Pointcloud, plusSphereCollectionandCollideraggregates. - Transform & query protocols — shared
Scalable,Transformable,Bounded,Stretchable, andCollidesinterfaces across shapes (scaled,translated,rotated_quat,transformed,broadphase,obb,aabb,collides). - NumPy interop —
from_numpy/to_numpyand the__array__protocol on every primitive. - Serialization — instances expose
__dataclass_fields__soorjson,msgspec, andpydantictreat them as dataclasses; pickling is supported via__getnewargs_ex__. - Fully typed — ships a
py.typedmarker and complete.pyistubs.
Installation
pip install geomanpy
Usage
import numpy as np
from geomanpy import Vec3, Quat, Sphere, Cuboid, Collider
# Linear algebra
a = Vec3(1.0, 2.0, 3.0)
b = Vec3.from_numpy(np.array([4.0, 5.0, 6.0]))
print(a.dot(b), a.cross(b).to_numpy())
# Rotations
q = Quat.from_rotation_z(np.pi / 2)
print((q * Vec3.X).to_numpy())
# Collision detection
ball = Sphere(Vec3.ZERO, radius=1.0)
box = Cuboid.from_aabb(Vec3(0.5, 0.5, 0.5), Vec3(2.0, 2.0, 2.0))
print(ball.collides(box))
# Aggregate many shapes behind a single broad/narrow-phase query
scene = Collider()
scene.add(box)
print(scene.collides(ball))
Convenience aliases are provided for common names: Quaternion (Quat), Rotation3d (Mat3), Translation3d (Vec3), Transform3d (Affine3), Box3d (Cuboid), Sphere3d (Sphere), Cylinder3d (Cylinder), ObstacleUnion (Collider), and PointCloud (Pointcloud).
Backends
geomanpy can target two Python runtimes, selected at build time by Cargo feature:
pyo3-backend(default) — builds a CPython extension module via PyO3.rustpython-backend— registers ageomanpymodule inside an embedded RustPython VM, reusing the same wrapper types.
Exactly one backend must be active. The optional safe-locks feature switches mutable wrappers to RustPython's PyRwLock.
Building from source
The CPython wheel is built with maturin:
maturin develop # build and install into the active virtualenv
maturin build --release
License
Licensed under the Apache License, Version 2.0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geomanpy-0.4.2.tar.gz.
File metadata
- Download URL: geomanpy-0.4.2.tar.gz
- Upload date:
- Size: 107.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ccb3758d4a4e286da88bb648f1d02568a5dc817c6d00c455c9e065878e6e67
|
|
| MD5 |
2748746de8c56a4b818830df181fbb92
|
|
| BLAKE2b-256 |
79b38e55793c46b570984b6abf9bf090d03c69f86bd6edcc29f213cdebfd01e8
|
File details
Details for the file geomanpy-0.4.2-cp315-abi3.abi3t-win_arm64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp315-abi3.abi3t-win_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.15, CPython 3.15+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff45ef4e43af3687bac169af6f9ca516964a5250cacf904cd4622d53aee68858
|
|
| MD5 |
3c7a108bbb75b9b88e5af5ec57157a0e
|
|
| BLAKE2b-256 |
60243e1f2ec6d3e4631dbd13fe476e150f503fd3ed4b554730a8c03289b17a10
|
File details
Details for the file geomanpy-0.4.2-cp315-abi3.abi3t-win_amd64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp315-abi3.abi3t-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.15, CPython 3.15+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
950ed6aaa2658711a4cea6cf39ea728a1e37bdc51de5f79e7190a1cc8d0ad852
|
|
| MD5 |
55ddf87e2d00e31e644dd12338c17959
|
|
| BLAKE2b-256 |
d69079a45494604f25a0709d7c4cb851d6c6ee508e7f13b9cf5870bc20bfb3da
|
File details
Details for the file geomanpy-0.4.2-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.15, CPython 3.15+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc37ad72744d17bc29a741401b1309b378b63a4bbea578007f716641818ff25f
|
|
| MD5 |
4f3e091709525ae01e459747ce809903
|
|
| BLAKE2b-256 |
b3fcb4f4af208e7d93cea56b1545e2165f73707fedbb2b36db68a5fe58c793d5
|
File details
Details for the file geomanpy-0.4.2-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.15, CPython 3.15+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e8954bb490d7a5a3818c3a3c982138593eeb0827fffb29d2bf77a569b483ba
|
|
| MD5 |
e51e1f109ce3c8142424976dab094716
|
|
| BLAKE2b-256 |
c70c07fd5ba030cc4b3274e6950264135d268622d516f98dcebd35669077c442
|
File details
Details for the file geomanpy-0.4.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.15, CPython 3.15+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e97ef980e11acaacb75474a44500f48d2810bfa573b42555c074f62f9e0a53d9
|
|
| MD5 |
bdc57385de7b22e221180a16fbd07b0b
|
|
| BLAKE2b-256 |
afb62ff020a0cbf1d3c7d55c2ee369aaf3bbed0ce7109f142dc0cab5b74be4eb
|
File details
Details for the file geomanpy-0.4.2-cp314-cp314t-win_arm64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp314-cp314t-win_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.14t, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86a4617e1b109c426375d83ee9d8507ca32f901b7e5038f79909a3c66922c687
|
|
| MD5 |
f44a0f5ad36d777a525dc4b0063a8424
|
|
| BLAKE2b-256 |
ab88214b27e54d742e8f194aaf5c0e01d0d1a42fdc3fcd475f22e87c9b8562d5
|
File details
Details for the file geomanpy-0.4.2-cp314-cp314t-win_amd64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp314-cp314t-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.14t, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7985137418e0aa92c32d847288fd50b34a88308e86e9ad1fe242e27d61cf406f
|
|
| MD5 |
01f2b58f0c60c8b77be6ba498756cb90
|
|
| BLAKE2b-256 |
e989132f48f130d6f11eedb6e7e37f1da24293126101380b48bb543ea85376bb
|
File details
Details for the file geomanpy-0.4.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af2c3e65e56e2666941d75a1c6f5396a80e60219e3caa22ccba78b7716cde9d4
|
|
| MD5 |
9c44821ceb42c4d33513aa75503722f3
|
|
| BLAKE2b-256 |
11d0f7b6586810090b9b370e71a210353596fd32cc2cbbda507db267a6ce4ee8
|
File details
Details for the file geomanpy-0.4.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d9b83e1782b34b0a676618d613ed8cbadf0b913be7dde022574244222224dc2
|
|
| MD5 |
fd045a93cf427d8eb9e054e40f02cac4
|
|
| BLAKE2b-256 |
b6bf7ca42751655302a3b2711e8d890a23521bffe3e0367bb62b9763f4b08026
|
File details
Details for the file geomanpy-0.4.2-cp314-cp314t-macosx_11_0_arm64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp314-cp314t-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.14t, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e77a155a46931b66aeda3031dd5b235622d0e3924241a1ec065a1ff6fd22cff6
|
|
| MD5 |
b0d605a6db07c6ec3930a79aa1cf73ae
|
|
| BLAKE2b-256 |
3d22202c88572119ca492f7a085791d2d999077758de7ee2e6d6efa48fe4a751
|
File details
Details for the file geomanpy-0.4.2-cp310-abi3-win_arm64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp310-abi3-win_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a14226981b3a953b56aee5231683769d6e54010269b2809dacb40f663fa0d0f
|
|
| MD5 |
654dc7368980ac565efe79a4532e0149
|
|
| BLAKE2b-256 |
8ada96c22aa8447aaa8dda20e84960e533b47f667ce19c5ca730cb6bd1a8088e
|
File details
Details for the file geomanpy-0.4.2-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47519cdf63433d31d7b39c38426fe2a72e8ac5caba68dcb88cc6aa1d4672314d
|
|
| MD5 |
a6f8dfe379a16269eec16266301c52a8
|
|
| BLAKE2b-256 |
5a5b94087bc9b36a2e455ee82c01cd87ee7ac7bd9d901c077d0e4532605ecd43
|
File details
Details for the file geomanpy-0.4.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88c721c4ad783d041a0d60bf9832b72675a2cef628d8e88092ed08e0858930ab
|
|
| MD5 |
1ec9539308ace595c491e9dfab2f82f8
|
|
| BLAKE2b-256 |
e5f6b8eb2f5b0a5e1b3209483de07ad8df97600fdee60a615182116dbfad6f4f
|
File details
Details for the file geomanpy-0.4.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb7663014d175f834015ffc7a6d16a7dea0d0e4c2fa9df80c394ab66ff2ba8b
|
|
| MD5 |
89a60efec0aa00167d7c1af5198066ab
|
|
| BLAKE2b-256 |
e11c5f3a6dd16393b4715d79924f5a1518937dae53f289a122c8c6671fe98f59
|
File details
Details for the file geomanpy-0.4.2-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: geomanpy-0.4.2-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07609748f5c6992649b2f657bf5bb0d3378e4ec9ea7ad7cb02c2a934839f2c3a
|
|
| MD5 |
6300e389286bb407b3deba8e62dcab4d
|
|
| BLAKE2b-256 |
8849806524d33bdc1d77596a4cb73d717c92807eaf2dce03466111c71308efc3
|