Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.3%) to scientific vocabulary
Keywords
available-on-pypi
group-theory
math
mathematics
maths
permutation
python
symmetric-group
Keywords from Contributors
standards
interactive
serializer
cycles
packaging
network-simulation
shellcodes
hacking
autograding
observability
Last synced: 6 months ago
·
JSON representation
Repository
Permutations of finitely many positive integers
Basic Info
- Host: GitHub
- Owner: jwodder
- License: mit
- Language: Python
- Default Branch: master
- Size: 144 KB
Statistics
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 13
- Releases: 7
Topics
available-on-pypi
group-theory
math
mathematics
maths
permutation
python
symmetric-group
Created over 8 years ago
· Last pushed 6 months ago
Metadata Files
Readme
Changelog
License
README.rst
|repostatus| |ci-status| |coverage| |pyversions| |license|
.. |repostatus| image:: https://www.repostatus.org/badges/latest/active.svg
:target: https://www.repostatus.org/#active
:alt: Project Status: Active — The project has reached a stable, usable
state and is being actively developed.
.. |ci-status| image:: https://github.com/jwodder/permutation/actions/workflows/test.yml/badge.svg
:target: https://github.com/jwodder/permutation/actions/workflows/test.yml
:alt: CI Status
.. |coverage| image:: https://codecov.io/gh/jwodder/permutation/branch/master/graph/badge.svg
:target: https://codecov.io/gh/jwodder/permutation
.. |pyversions| image:: https://img.shields.io/pypi/pyversions/permutation.svg
:target: https://pypi.org/project/permutation
.. |license| image:: https://img.shields.io/github/license/jwodder/permutation.svg
:target: https://opensource.org/licenses/MIT
:alt: MIT License
`GitHub `_
| `PyPI `_
| `Documentation `_
| `Issues `_
| `Changelog `_
``permutation`` provides a ``Permutation`` class for representing `permutations
`_ of finitely many positive
integers in Python. Supported operations & properties include inverses, (group
theoretic) order, parity, composition/multiplication, cycle decomposition,
cycle notation, word representation, Lehmer codes, and, of course, use as a
callable on integers.
Installation
============
``permutation`` requires Python 3.8 or higher. Just use `pip
`_ for Python 3 (You have pip, right?) to install::
python3 -m pip install permutation
Examples
========
>>> from permutation import Permutation
>>> p = Permutation(2, 1, 4, 5, 3)
>>> p(1)
2
>>> p(3)
4
>>> p(42)
42
>>> p.to_cycles()
[(1, 2), (3, 4, 5)]
>>> print(p)
(1 2)(3 4 5)
>>> print(p.inverse())
(1 2)(3 5 4)
>>> p.degree
5
>>> p.order
6
>>> p.is_even
False
>>> p.lehmer(5)
27
>>> q = Permutation.cycle(1,2,3)
>>> print(p * q)
(2 4 5 3)
>>> print(q * p)
(1 3 4 5)
>>> for p in Permutation.group(3):
... print(p)
...
1
(1 2)
(2 3)
(1 3 2)
(1 2 3)
(1 3)
Owner
- Name: John T. Wodder II
- Login: jwodder
- Kind: user
- Location: A well house for a large spring
- Company: @dandi
- Repositories: 156
- Profile: https://github.com/jwodder
GitHub Events
Total
- Release event: 1
- Delete event: 7
- Issue comment event: 8
- Push event: 8
- Pull request event: 15
- Create event: 8
Last Year
- Release event: 1
- Delete event: 7
- Issue comment event: 8
- Push event: 8
- Pull request event: 15
- Create event: 8
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| John T. Wodder II | g****t@v****g | 130 |
| drocta | m****o@g****m | 3 |
| Eric Wolf | r****c@g****e | 1 |
| dependabot[bot] | 4****] | 1 |
| John T. Wodder II | j****r | 1 |
Committer Domains (Top 20 + Academic)
gmx.de: 1
varonathe.org: 1
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 17
- Total pull requests: 21
- Average time to close issues: 18 days
- Average time to close pull requests: 6 days
- Total issue authors: 4
- Total pull request authors: 5
- Average comments per issue: 0.41
- Average comments per pull request: 1.95
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 17
Past Year
- Issues: 0
- Pull requests: 12
- Average time to close issues: N/A
- Average time to close pull requests: 11 days
- Issue authors: 0
- Pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 2.08
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 10
Top Authors
Issue Authors
- jwodder (12)
- mvnarvaezt (2)
- yurivict (1)
- VascoSch92 (1)
Pull Request Authors
- dependabot[bot] (27)
- jwodder (4)
- VascoSch92 (2)
- Deric-W (1)
- drocta (1)
Top Labels
Issue Labels
enhancement (11)
documentation (1)
Pull Request Labels
dependencies (27)
d:python (21)
d:github-actions (6)
CI (1)
Packages
- Total packages: 1
-
Total downloads:
- pypi 79,741 last-month
- Total dependent packages: 0
- Total dependent repositories: 5
- Total versions: 7
- Total maintainers: 1
pypi.org: permutation
Permutations of finitely many positive integers
- Documentation: https://permutation.readthedocs.io
- License: MIT
-
Latest release: 0.5.0
published about 1 year ago
Rankings
Dependent repos count: 6.7%
Downloads: 9.7%
Dependent packages count: 10.0%
Average: 11.0%
Forks count: 14.2%
Stargazers count: 14.5%
Maintainers (1)
Last synced:
6 months ago
Dependencies
docs/requirements.txt
pypi
- Sphinx *
- sphinx-copybutton *
- sphinx_rtd_theme *
.github/workflows/test.yml
actions
- actions/checkout v3 composite
- actions/setup-python v4 composite
- codecov/codecov-action v3 composite