Skip to main content

A CLI tool to permutate with custom options by @yilmazhasan

Project description

Custom Permutation

Version 1.0.2

Python implementation for Custom Permutation.

Setup for repo

  1. Clone the repository
  2. Create and activate the virtural environment

python -m venv .venv

source venv_mysite/bin/activate

  1. Install requirements:

pip install -r requirements.txt

  1. Run the app:

python src/custom_permutation/app.py --items a,b,c,d -i a,0 -x c,1 -x a,2

Args

--items a,b,c,d -i a,0 -x c,1 -x a,2

The permutation will be generated based o the options below:

[
    ['a'],
    ['a', 'b', 'd'],
    ['a', 'b', 'd'],
    ['a', 'b', 'c', 'd']
]

The result would be four lists:

a,b,c,d
a,b,d,c
a,d,b,c
a,d,c,b

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

custom_permutation-1.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

custom_permutation-1.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file custom_permutation-1.0.2.tar.gz.

File metadata

  • Download URL: custom_permutation-1.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for custom_permutation-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6fafbf63711104eed37bedaab41fa212f66cde32265749f0064374e1cebac50b
MD5 eb0aa43caf95a14b7c62aeca5941dcbe
BLAKE2b-256 6e717bd52ae80ae4bac35e2c640d28418537c49ac85f2b7b4d3afa533fc27934

See more details on using hashes here.

Provenance

The following attestation bundles were made for custom_permutation-1.0.2.tar.gz:

Publisher: publish-to-pypi.yaml on yilmazhasan/custom_permutation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file custom_permutation-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for custom_permutation-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0d53fc3cc9ce15faeeb354ecb3d0456509b94975516a6775ed3d82d23e77ce
MD5 3519a3b657a6effc0ccd98a71eb095f2
BLAKE2b-256 25e35b8b023ff8e351b03d7f055ed62a0185c2177aa2f54ed6ad1422fb472853

See more details on using hashes here.

Provenance

The following attestation bundles were made for custom_permutation-1.0.2-py3-none-any.whl:

Publisher: publish-to-pypi.yaml on yilmazhasan/custom_permutation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page