Skip to main content

The package

combs is a package used to generate all possible combinations of a given length k on a given set. The set is given as a list, and k must be equal to 0 or positive.

Usage examples

With integers

from combs import combinations

l = [89,32,6,7]
k = 2
combs = combinations.find_combinations(l, k)
print(combs)

Output :

[[89, 32], [89, 6], [89, 7], [32, 6], [32, 7], [6, 7]]

With strings

from combs import combinations

l = ["github", "gitlab", "azuredevops", "svn"]
k = 3
combs = combinations.find_combinations(l, k)
print(combs)

Output :

[['github', 'gitlab', 'azuredevops'], ['github', 'gitlab', 'svn'], ['github', 'azuredevops', 'svn'], ['gitlab', 'azuredevops', 'svn']]

Metadata

Release files for PyCombs 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyCombs 1.0.0
File Size Uploaded
PyCombs-1.0.0.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyCombs 1.0.0
File Interpreter ABI Platform
PyCombs-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / PyCombs-1.0.0.tar.gz

Download URL PyCombs-1.0.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b32f2bc1d177f1610d8c97547b06a0271f18fa4d7444db96298f71fc0d72d83c
BLAKE2b-256 checksum
How to use checksums
383dab20bc48977d0bfdb08c96f783bad854d677316a96aeff07f509872cee02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

Release files / PyCombs-1.0.0-py3-none-any.whl

Download URL PyCombs-1.0.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f57e4fac88187e918353c0e74d8952126338abc25ab1e0e7dd6f70789fc5f1c2
BLAKE2b-256 checksum
How to use checksums
280db1343e78b22085f153dea15e99d4394672394141b9b52bea3eaea2948f95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page