$npx skillfedfor your agent

numpy-quaternion

Add a quaternion dtype to NumPy

With conditionsPyPI PhysicsReleased Nov 20251.1M downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — numpy_quaternion-2024.0.13-cp310-cp310-macosx_10_9_universal2.whl · numpy_quaternion-2024.0.13-cp310-cp310-macosx_10_9_x86_64.whl · numpy_quaternion-2024.0.13-cp310-cp310-macosx_11_0_arm64.whl
v2024.0.13 · released 2025-11-24 · Python <3.15,>=3.10 · 2 runtime deps: numpy, scipy

Yes, if you need quaternion support in NumPy-based scientific code. The package is production-stable, actively maintained, MIT-licensed, and has no known vulnerabilities. Install friction is moderate due to C compilation, but prebuilt wheels are available for common platforms. Not necessary if you only need basic quaternion math or prefer pure-Python alternatives.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a working C compiler for pip installation; prebuilt wheels available for common platforms.
  • Python 3.10–3.13 required.
  • Medium install friction due to C compilation requirement.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2025-11-24 (263 days) · last repo commit 2025-12-15 · 658 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,142,139 downloads/mo, #4,305 on PyPI

Verify before relying

import numpy as np
import quaternion

q1 = np.quaternion(1, 2, 3, 4)
q2 = np.quaternion(5, 6, 7, 8)
result = q1 * q2

a = np.array([q1, q2])
exponentials = np.exp(a)
  • Whether scipy is used at runtime or only as a build/test dependency
  • Performance characteristics compared to pure-Python quaternion libraries
  • Specific use cases in astronomy or physics applications beyond rotation representation
Same gist for agents: .md · .json

What it is and what it does

numpy-quaternion extends NumPy with a native quaternion dtype, allowing quaternions to be used directly in NumPy arrays and operations. Quaternions are represented as a scalar (w) followed by three imaginary components (x, y, z), stored as double-precision floats. The package implements standard ufuncs (add, multiply, exp, log, conjugate, etc.) that run efficiently on quaternion arrays, and provides conversion functions to rotate between quaternion, rotation matrix, rotation vector, Euler angle, and spherical coordinate representations.

The package is built on NumPy and scipy, making it suitable for scientific and engineering applications that need 3D rotations or orientation calculations. Installation typically requires a C compiler, though prebuilt wheels are available for Python 3.10–3.13 on macOS, Linux, and Windows. The code is production-stable and actively maintained, with comprehensive documentation and examples.

Use it for

  • Represent and manipulate 3D rotations in robotics, aerospace, or computer graphics applications
  • Perform batch quaternion arithmetic on large arrays without Python loops
  • Convert between rotation representations (matrices, Euler angles, rotation vectors) for different algorithms
  • Compute exponentials, logarithms, and other transcendental functions on quaternion arrays
  • Store orientation data compactly in NumPy arrays while maintaining numerical precision

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need quaternion support in NumPy-based scientific code.

The package is production-stable, actively maintained, MIT-licensed, and has no known vulnerabilities. Install friction is moderate due to C compilation, but prebuilt wheels are available for common platforms. Not necessary if you only need basic quaternion math or prefer pure-Python alternatives.

Install

numpy-quaternion on PyPI

Before you install

Medium install friction due to C compilation requirement. Package is actively maintained with recent releases; last commit 2025-12-15. Supports Python 3.10–3.13 with prebuilt wheels for common platforms (macOS, Linux x86_64, ARM, Windows).

Requires a working C compiler for pip installation; prebuilt wheels available for common platforms. Python 3.10–3.13 required.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

import numpy as np
import quaternion

q1 = np.quaternion(1, 2, 3, 4)
q2 = np.quaternion(5, 6, 7, 8)
result = q1 * q2

a = np.array([q1, q2])
exponentials = np.exp(a)

Verify before relying

  • Whether scipy is used at runtime or only as a build/test dependency
  • Performance characteristics compared to pure-Python quaternion libraries
  • Specific use cases in astronomy or physics applications beyond rotation representation

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
2 packages
numpyscipy
MaintenanceAging 263 days since the last release
Last repo commit
First released
Downloads1,142,139 / month, #4,305 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: AstronomyTopic :: Scientific/Engineering :: Physics

Evidence: numpy_quaternion-2024.0.13-cp310-cp310-macosx_10_9_universal2.whl; numpy_quaternion-2024.0.13-cp310-cp310-macosx_10_9_x86_64.whl; numpy_quaternion-2024.0.13-cp310-cp310-macosx_11_0_arm64.whl; numpy_quaternion-2024.0.13-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; numpy_quaternion-2024.0.13-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; numpy_quaternion-2024.0.13-cp310-cp310-win_amd64.whl; numpy_quaternion-2024.0.13-cp311-cp311-macosx_10_9_universal2.whl; numpy_quaternion-2024.0.13-cp311-cp311-macosx_10_9_x86_64.whl; numpy_quaternion-2024.0.13-cp311-cp311-macosx_11_0_arm64.whl; numpy_quaternion-2024.0.13-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; numpy_quaternion-2024.0.13-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; numpy_quaternion-2024.0.13-cp311-cp311-win_amd64.whl; numpy_quaternion-2024.0.13-cp312-cp312-macosx_10_13_universal2.whl; numpy_quaternion-2024.0.13-cp312-cp312-macosx_10_13_x86_64.whl; numpy_quaternion-2024.0.13-cp312-cp312-macosx_11_0_arm64.whl; numpy_quaternion-2024.0.13-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; numpy_quaternion-2024.0.13-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; numpy_quaternion-2024.0.13-cp312-cp312-win_amd64.whl; numpy_quaternion-2024.0.13-cp313-cp313-macosx_10_13_universal2.whl; numpy_quaternion-2024.0.13-cp313-cp313-macosx_10_13_x86_64.whl

Tags

Capabilities
quaternion math numpyquaternion dtyperotation quaternionsquaternion arrays3d rotation representationquaternion operationsnumpy quaternion dtype
Topics
rotation-mathnumpy-extension3d-graphics

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 › “quaternion math numpy”

  • numpy-quaternionAdds a quaternion dtype to NumPy, enabling efficient quaternion…
  • pyquaternionProvides quaternion representation, manipulation, and rotation…
  • pyglmPyGLM provides Python bindings to OpenGL Mathematics (GLM), a C++…

Give your agent the search over MCP, or paste the wish link into any chat.

More Physics packages

networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
pydicom Worth it
PyPI · Libraries · released Mar 2026

Pydicom reads, modifies, and writes DICOM medical imaging files in pure Python, with optional NumPy support for pixel data as arrays.

Install it if you work with medical imaging data, DICOM files, or healthcare IT systems.

MITpure Python · 3.10+
5.5Mdownloads / mo
albumentations Worth it
PyPI · Libraries · released May 2025

Albumentations applies image transformations to training data, supporting classification, segmentation, object detection, and pose estimation with a unified API for images, masks, bounding boxes, and keypoints.

Install it if you need a unified, production-grade augmentation API for computer vision tasks.

MITpure Python · 3.9+aging
5.5Mdownloads / mo
CoolProp Worth it
PyPI · Scientific/Engineering · released Jun 2026

CoolProp provides thermodynamic and transport property calculations for fluids and fluid mixtures, offering open-source functionality similar to REFPROP.

MITcompiled wheel · 3.9+
5.5Mdownloads / mo
pyquaternion Worth it
PyPI · Python Modules · released Oct 2020

Provides quaternion representation, manipulation, and rotation operations for 3D geometry and animation, with support for smooth interpolation between orientations.

MITpure Python
3.9Mdownloads / mo

See also transformations · transforms3d · euclid3 · roma · numpydantic · pyerfa · array-api-extra · nptyping · pydantic-numpy