permutation
Permutations of finitely many positive integers
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has zero known vulnerabilities, installs with no friction, and carries a permissive MIT license. It fills a clear niche for group-theoretic permutation work in Python with a well-documented, typed API. Install it if you need to work with permutations; skip it if your use case doesn't involve permutation algebra.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or higher.
- Low friction installation with no runtime dependencies.
- Actively maintained as of 2026-07-20 with support across Python 3.8 through 3.13 and PyPy.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) — you can use, modify, and distribute this package with minimal restrictions, including in proprietary software.
last release 2024-12-01 (621 days) · last repo commit 2026-07-20 · 17 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 142,933 downloads/mo, #11,196 on PyPI
Alternatives
Verify before relying
pip install permutation
from permutation import Permutation
p = Permutation(2, 1, 4, 5, 3)
print(p.to_cycles()) # [(1, 2), (3, 4, 5)]
print(p.order) # 6What it is and what it does
permutation is a pure-Python library for working with permutations of finitely many positive integers. It provides a Permutation class that lets you construct, compose, and analyze permutations using standard group-theoretic operations. You can represent permutations in cycle notation, compute their inverses and order, check parity, convert to and from Lehmer codes, and use them as callables to map integers.
The package is designed for developers and mathematicians who need to work with permutation groups, symmetric groups, or permutation-based algorithms. It has no external runtime dependencies, making it lightweight to install, and is fully typed. The library supports both CPython and PyPy across modern Python versions.
Use it for
- Implementing group-theoretic algorithms that require permutation composition and cycle analysis.
- Computing properties of permutations such as order, parity, and cycle structure for mathematical research.
- Building combinatorial or cryptographic tools that manipulate permutations as callable objects.
- Converting between permutation representations (cycle notation, word form, Lehmer codes) for educational or algorithmic purposes.
- Generating and iterating over symmetric groups for exhaustive search or enumeration tasks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has zero known vulnerabilities, installs with no friction, and carries a permissive MIT license. It fills a clear niche for group-theoretic permutation work in Python with a well-documented, typed API. Install it if you need to work with permutations; skip it if your use case doesn't involve permutation algebra.
Install
permutation on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained as of 2026-07-20 with support across Python 3.8 through 3.13 and PyPy.
Requires Python 3.8 or higher.
License in practice
MIT license (permissive) — you can use, modify, and distribute this package with minimal restrictions, including in proprietary software.
Quickstart
pip install permutation
from permutation import Permutation
p = Permutation(2, 1, 4, 5, 3)
print(p.to_cycles()) # [(1, 2), (3, 4, 5)]
print(p.order) # 6
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 621 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 142,933 / month, #11,196 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: MathematicsTyping :: Typed |
Evidence: permutation-0.5.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 › “permutation group theory”
- permutationProvides a Permutation class for representing and manipulating…
- passagemath-gapProvides Python interfaces to the GAP computational algebra system…
- poseidon-pyPoseidon hash implementation in Python with a C-based Hades…
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 passagemath-gap · poseidon-py · primePy · ldpc · passagemath-categories · multiset · cypari2 · gram-newton-schulz · graycode · pyroaring