Skip to main content

A CLI tool to permutate with custom options by @yilmazhasan

Project description

Custom Permutation

Python implementation for Custom Permutation.

Setup

  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-0.0.1.tar.gz (4.8 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-0.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for custom_permutation-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d9239ef7484de481742bc7351112b754ca7c1a639828840164fdf80eab0cb61e
MD5 0a2c6600f5f72c2a5c5a3a43df5e8b44
BLAKE2b-256 27e83119d6045e5a35ba84f6c450e94f9c58dd17ceaa999d44ff9321169971db

See more details on using hashes here.

Provenance

The following attestation bundles were made for custom_permutation-0.0.1.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-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for custom_permutation-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42a5e04e6b02156fd2985c01ea1da14a5f2f55ae6c59f5174649d1754ce5d7b1
MD5 4b896fd3417d480d23cbaee49a3d4dcf
BLAKE2b-256 fa5801d733cce6e58b0ad85308c452b099996b86bf4280ac1167919b80455f33

See more details on using hashes here.

Provenance

The following attestation bundles were made for custom_permutation-0.0.1-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