Combinatorics Utils
A Python library for generating value combinations, specifically designed to handle combinations with repetition of specific sizes.
Installation
You can install this package locally using pip:
pip install combinatorics_utils
Usage
Combinations with Repetition
Generate combinations of a set of values with a specified size.
from combinatorics_utils import combinations_with_repetition
values = [1, 2, 3]
size = 2
# Generate combinations of length 2 allowing repetition
result = combinations_with_repetition(values, size)
for combo in result:
print(combo)
Example Output:
[1, 1]
[1, 2]
[1, 3]
[2, 2]
[2, 3]
[3, 3]
Features
- Efficient generation of combinations with repetition.
- Logic to prevent duplicate combination sets (multiset equality).
Metadata
Release files for combinatorics-utils 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| combinatorics_utils-0.0.2.tar.gz | 3.3 kB | Without provenance | Details for combinatorics_utils-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| combinatorics_utils-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for combinatorics_utils-0.0.2-py3-none-any.whl |
Total release size: 7.3 kB
Release files / combinatorics_utils-0.0.2.tar.gz
| Download URL | combinatorics_utils-0.0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ae3da56ac5e612e3e78e8529596b162d11772bbf7e1c322b5446d1950245103
|
|
BLAKE2b-256 checksum How to use checksums |
456311833c86a211d1d739dc3827c8c053ef44557b9f5bbfc5b0f74f236c14f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / combinatorics_utils-0.0.2-py3-none-any.whl
| Download URL | combinatorics_utils-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c71a9e5f23d01dc3397d6d587e68578bc5a20bd1cd7347748747d684ac21b246
|
|
BLAKE2b-256 checksum How to use checksums |
7690e4b198f10fc3d1df537dc4d56d0b990f98c1cf81f2fd9bfe9e0ee2066d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for combinatorics-utils 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.