magiccube
NxNxN Rubik Cube implementation
Decision gist · record as of 2026-08-14
Yes, if you need a fast, permissively licensed Rubik cube library. The low install friction, Production/Stable status, and recent updates make it reliable for simulations and solver development. The aging maintenance signal (474 days since last release) is a minor concern for long-term support, but no known vulnerabilities and active repository history suggest stability. Not necessary if you only need basic cube representation without solving or optimization.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low install friction with a pure-wheel distribution and a single runtime dependency on numpy.
- The package is marked Production/Stable and has received updates as recently as April 2025, though the last commit was September 2025 and the project shows aging maintenance signals.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license that allows commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
last release 2025-04-27 (474 days) · last repo commit 2025-09-07 · 36 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 485,889 downloads/mo, #6,395 on PyPI
Alternatives
Verify before relying
pip install magiccube
import magiccube
cube = magiccube.Cube(3, "YYYYYYYYYRRRRRRRRRGGGGGGGGGOOOOOOOOOBBBBBBBBBWWWWWWWWW")
cube.rotate("R' L2 U D' F B'2 R' L")
from magiccube import BasicSolver
solver = BasicSolver(cube)
solver.solve()- Whether the BasicSolver works reliably for all 3x3x3 configurations or only specific starting states.
- Performance characteristics and whether the package is suitable for large-scale simulations beyond basic use.
- Whether the move optimizer handles all edge cases or has known limitations in notation parsing.
What it is and what it does
MagicCube is a Python library for creating and manipulating Rubik cubes of any size from 2x2x2 up to 100x100x100. It provides fast rotation operations using numpy, making it suitable for cube simulations and algorithm testing. The library supports standard cube notation (L, R, U, D, F, B moves and their variants) plus advanced extensions like wide rotations and layer-specific moves.
The package includes a BasicSolver that can solve 3x3x3 cubes using the beginner method, and a move optimizer that simplifies move sequences by eliminating redundant rotations, converting triple moves to inverses, and removing unnecessary cube rotations. It's designed for developers building cube solvers, simulations, or educational tools.
Use it for
- Build a Rubik cube solver or algorithm tester by creating cubes and applying move sequences.
- Simulate cube scrambles and track state changes for educational or competitive analysis.
- Optimize move sequences for cube-solving algorithms to reduce the number of rotations needed.
- Generate and validate cube states in Kociemba order for advanced solving techniques.
- Create visualizations or games that require fast cube state manipulation and rotation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a fast, permissively licensed Rubik cube library.
The low install friction, Production/Stable status, and recent updates make it reliable for simulations and solver development. The aging maintenance signal (474 days since last release) is a minor concern for long-term support, but no known vulnerabilities and active repository history suggest stability. Not necessary if you only need basic cube representation without solving or optimization.
Install
magiccube on PyPI
Before you install
Low install friction with a pure-wheel distribution and a single runtime dependency on numpy. The package is marked Production/Stable and has received updates as recently as April 2025, though the last commit was September 2025 and the project shows aging maintenance signals.
Requires Python 3.9 or later.
License in practice
BSD-3-Clause is a permissive license that allows commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
Quickstart
pip install magiccube
import magiccube
cube = magiccube.Cube(3, "YYYYYYYYYRRRRRRRRRGGGGGGGGGOOOOOOOOOBBBBBBBBBWWWWWWWWW")
cube.rotate("R' L2 U D' F B'2 R' L")
from magiccube import BasicSolver
solver = BasicSolver(cube)
solver.solve()
Verify before relying
- Whether the BasicSolver works reliably for all 3x3x3 configurations or only specific starting states.
- Performance characteristics and whether the package is suitable for large-scale simulations beyond basic use.
- Whether the move optimizer handles all edge cases or has known limitations in notation parsing.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Aging 474 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 485,889 / month, #6,395 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: magiccube-1.2.0-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 › “rubik cube solver python”
- magiccubeMagicCube implements NxNxN Rubik cubes with fast rotations and…
- cube_dbtIntegrates dbt models with Cube's semantic layer by parsing dbt…
- maxcube-apiProvides a Python API to query and control eQ-3/ELV MAX! Cube…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
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.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also transforms3d · pyquaternion · xpress · cbcbox · datacube · transformations · nvidia-cusolver · nvidia-cusolver-cu12 · nvidia-cusolver-cu11