pyquaternion
A fully featured, pythonic library for representing and using quaternions.
Decision gist · record as of 2026-08-14
Yes. Pyquaternion is a stable, low-friction library with no known vulnerabilities, permissive licensing, and active repository maintenance. It fills a clear niche for quaternion math in Python. The main caveat is that the last release was in 2020; if you need support for very recent Python versions or active feature development, verify compatibility first, but for standard 3D rotation tasks it is a reliable choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with a single runtime dependency on numpy.
- Actively maintained with recent commits; last release was over 5 years ago but the repository remains active and the package is widely used.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2020-10-05 (2139 days) · last repo commit 2026-05-07 · 366 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,939,911 downloads/mo, #2,441 on PyPI
Alternatives
Verify before relying
pip install pyquaternion
import pyquaternion
q = pyquaternion.Quaternion(axis=[0, 1, 0], degrees=90)
rotated = q.rotate([0, 0, 4])- Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the latest tested version).
- Current status of the 2.7 support claim given modern Python ecosystem shifts.
What it is and what it does
Pyquaternion is a pure-Python library for working with quaternions—a mathematical representation of 3D rotations and orientations. It wraps numpy and provides a Pythonic interface for creating quaternions from axes and angles, rotating vectors, and interpolating smoothly between orientations. The library is designed for applications that need to represent and manipulate 3D rotations, such as animation, robotics, and 3D graphics, where quaternions offer numerical stability and smooth interpolation that Euler angles cannot provide.
The package is in Beta development status and has been actively maintained since its first release in 2016. It depends only on numpy for its numerical operations, making installation straightforward. The library supports both Python 2.7 and Python 3.x, though the latest release was in 2020 and the package has not received updates for several years despite the repository remaining active.
Use it for
- Animate smooth transitions between 3D object orientations by interpolating quaternions rather than Euler angles.
- Represent and compose rotations in robotics or motion-capture systems without gimbal lock issues.
- Rotate 3D vectors or point clouds by quaternion-based transformations in graphics or scientific computing.
- Build pose estimation or orientation tracking systems that need numerically stable rotation representations.
- Perform geometric calculations involving 3D rotations in physics simulations or CAD-like applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Pyquaternion is a stable, low-friction library with no known vulnerabilities, permissive licensing, and active repository maintenance. It fills a clear niche for quaternion math in Python. The main caveat is that the last release was in 2020; if you need support for very recent Python versions or active feature development, verify compatibility first, but for standard 3D rotation tasks it is a reliable choice.
Install
pyquaternion on PyPI
Before you install
Low friction install with a single runtime dependency on numpy. Actively maintained with recent commits; last release was over 5 years ago but the repository remains active and the package is widely used.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install pyquaternion
import pyquaternion
q = pyquaternion.Quaternion(axis=[0, 1, 0], degrees=90)
rotated = q.rotate([0, 0, 4])
Verify before relying
- Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the latest tested version).
- Current status of the 2.7 support claim given modern Python ecosystem shifts.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Actively maintained 2,139 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,939,911 / month, #2,441 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: PhysicsTopic :: Scientific/Engineering :: VisualizationTopic :: Software Development :: Embedded SystemsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyquaternion-0.9.9-py2-none-any.whl; pyquaternion-0.9.9-py3-none-any.whl
Tags
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 › “3d orientation representation”
- pyquaternionProvides quaternion representation, manipulation, and rotation…
- numpy-quaternionAdds a quaternion dtype to NumPy, enabling efficient quaternion…
- cmeel-octomapProvides Python bindings to OctoMap, a 3D probabilistic mapping…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pytweening · transformations · euclid3 · numpy-quaternion · magiccube · pytransform3d · roma · transforms3d · affine · deskew