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.
Metadata
Release files for geomanpy 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geomanpy-0.6.1.tar.gz | 142.8 kB | Without provenance | Details for geomanpy-0.6.1.tar.gz |
Built distributions (wheels)
Total release size: 24.5 MB
Release files / geomanpy-0.6.1.tar.gz
| Download URL | geomanpy-0.6.1.tar.gz |
|---|---|
| Size | 142.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fbc232158744716406edad8d9d8161f7034de85c8fba78ad0bf17c771ff7fb8
|
|
BLAKE2b-256 checksum How to use checksums |
5e71ed33d1c25c57a3b2416686462fb7a6b5906af645497f3b58770867b0f9ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp315-abi3.abi3t-win_arm64.whl
| Download URL | geomanpy-0.6.1-cp315-abi3.abi3t-win_arm64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.15 Windows ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
5d017e37609b289bf5bc10a4274b1049052473b9edf0eafc348c34386582404e
|
|
BLAKE2b-256 checksum How to use checksums |
58342e59b3ab798459e3ba3a8df0dbbe8da1b3933f72147f17257b397c2f02e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp315-abi3.abi3t-win_amd64.whl
| Download URL | geomanpy-0.6.1-cp315-abi3.abi3t-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.15 Windows x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
0b8cfc02e07ddf8ddc6505eb4f4a2fc6fdae1197678134b209e27b905e6c4c9e
|
|
BLAKE2b-256 checksum How to use checksums |
17ef8cc55234e88cee8e1547162c507c01178b6b6c739bf375c232197ff3f3cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | geomanpy-0.6.1-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
c58a92b3cd1bdd80b77f1ea6590e3fda28dd027e7d2bb2168d57e528d1322aef
|
|
BLAKE2b-256 checksum How to use checksums |
f92638a2d63737e1bf9b65386afdc4b1f8dbf5e688e66b8a494953dc774eba5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | geomanpy-0.6.1-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ ARM64 abi3 abi3t |
|
SHA-256 checksum How to use checksums |
711255f4721496e737c066b4f65c1d5b8167ed058412cdc763d2b6cbbf9c88b5
|
|
BLAKE2b-256 checksum How to use checksums |
520bdc2843a740238ef70f0b4d42f4ff2f741377466a0da85882edf564e0c499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp315-abi3.abi3t-macosx_11_0_arm64.whl
| Download URL | geomanpy-0.6.1-cp315-abi3.abi3t-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.15 abi3 abi3t macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
91f44b1b3529b8e9ec35fce7b90959682a50566faedb0297e907bd9696f56093
|
|
BLAKE2b-256 checksum How to use checksums |
0640416e50ac1bdce647e1bc38fd19043d465e051f31ad6f285068d9ac1afe42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp314-cp314t-win_arm64.whl
| Download URL | geomanpy-0.6.1-cp314-cp314t-win_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows ARM64 |
|
SHA-256 checksum How to use checksums |
5ca48e6d4daf81ca833a273940f0f8fc870004c88ba46822c6235fce376a9ca2
|
|
BLAKE2b-256 checksum How to use checksums |
e8b12d9c0a74d01b8c951d90d0d47d72f82e74d42c2fbfd63f28b37893f163c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp314-cp314t-win_amd64.whl
| Download URL | geomanpy-0.6.1-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
da7a2f28166d4b67f83bd22f7a5cb440eea0c904b0e8b0fcf7fbae791f0163a9
|
|
BLAKE2b-256 checksum How to use checksums |
11db35777cbe0e24a5d4db84a68dbe4da63202a4bf4cc0212474716015770428
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | geomanpy-0.6.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a029c05bc81baed70f851e9365d2cc3660501ba8d68d9a8a7179865fd463a057
|
|
BLAKE2b-256 checksum How to use checksums |
a761eb90f96bd33824ef3baa751e334276ff42629268c4859a6dd5b1d0dda472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | geomanpy-0.6.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
fae1d998f2cceaa7e9ae8479e3fb01089c49ffc41c96806173a1063f41b6863d
|
|
BLAKE2b-256 checksum How to use checksums |
9c1da977859a4ffa49d84de272d5c0eb3a08f210ef61cab54b4c30575caa455a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | geomanpy-0.6.1-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a9c0242b6a52841f762937b58a966d9a030f039c47616651063e2e8400ea541a
|
|
BLAKE2b-256 checksum How to use checksums |
07ac500311d8db3a1d05e3467e431659c82a505a6eae7d927e0a87235dd141b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp310-abi3-win_arm64.whl
| Download URL | geomanpy-0.6.1-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9b8fc0340b546e3c8875fe08d78f8d0bd805edd9e36d65e654f7f049d7fa80a4
|
|
BLAKE2b-256 checksum How to use checksums |
a005f4e09a31140fda41805ba71eeceee4987d72f4bfdd47efd8f9538a64ddb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp310-abi3-win_amd64.whl
| Download URL | geomanpy-0.6.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b31588c74ea9c2fd479b04b5341559b7e28ae32c2ecacbbe909a78560a799d1b
|
|
BLAKE2b-256 checksum How to use checksums |
cda91bffc78417b9a412be158601f8d83af4de840f1bcbbb423586ad7d817d16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | geomanpy-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
46cd8ac61d38c75cb26e1ca44e442d8bda1d2c244e1194841218c1fde9fe717b
|
|
BLAKE2b-256 checksum How to use checksums |
f7c65684bc4bb266e10499bbbc1d67c6a6f84b0183f79b50c5e6b81605db69b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | geomanpy-0.6.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a380c40d6303b2dc3ac408140039c9b960ae1493fd56198517869f24387191dd
|
|
BLAKE2b-256 checksum How to use checksums |
b32d5a15f497277af7768fc8757962a87e6a2ddd5a6683d2f909694c19294a0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Release files / geomanpy-0.6.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | geomanpy-0.6.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cd0f91d4f1b1710932d25c89b0f14fbfc13d8f5200f3b2c657299cee278feb21
|
|
BLAKE2b-256 checksum How to use checksums |
cf4f527a2c34db37d757c020d836489490ce5d4a693f44321ac4dc4e705d7967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|
Security for geomanpy 0.6.1
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.