Skip to main content

A CLI tool to permutate with custom options by @yilmazhasan

Project description

Custom Permutation

Version 1.0.4

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.4.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.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: custom_permutation-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 aded85ca405de2d0108cc1774309bc19de21a7516f3267639b1a865fe7251392
MD5 43f229acb202046f55abf355658942bc
BLAKE2b-256 985b0f1dc694b00ed09aef950710054a123b4836c8a5bfa623607f8e95bb04bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for custom_permutation-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6562831f6e1acb09fc53db8e69ee104b0c2da796cf0b5c76be2775199b635c7c
MD5 f3665ac7e30b7f8f0d75222a25c85a47
BLAKE2b-256 519bb1188179291971c5988274fcb61364ef290b05d2509a4e3c35f57694c787

See more details on using hashes here.

Provenance

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