Skip to main content

Lists out permutations of lines in files.

Project description

mixemup

Build Status

A string combiner

This program takes as input a file of strings, and produces a list of combinations of these strings as output.

Installation

Requires Python 3.7 or greater.

pip install mixemup

Usage

Usage: mixemup.py [OPTIONS] FILE_PATH

  This program takes in a file with strings, and produces delimiter-
  separated combinations of these strings.

Options:
  -d, --delimiter TEXT     Set the delimiter.
  -r, --prefix TEXT        Add the given string to the beginning of each line.
  -o, --postfix TEXT       Add the given string to the end of each line.
  -n, --min-parts INTEGER  Set the minimum number of parts in output. This
                           count does not include prefixes and postfixes.
  -m, --max-parts INTEGER  Set the maximum number of parts in output. This
                           count does not include prefixes and postfixes.
  --version                Show the version and exit.
  --help                   Show this message and exit.

Example

$ cat names.txt
bob
alice
john
jack
sally
$ mixemup names.txt

bob
alice
john
jack
sally
bob alice
bob john
bob jack
bob sally
alice john
alice jack
alice sally
john jack
john sally
jack sally
bob alice john
bob alice jack
bob alice sally
bob john jack
bob john sally
bob jack sally
alice john jack
alice john sally
alice jack sally
john jack sally
bob alice john jack
bob alice john sally
bob alice jack sally
bob john jack sally
alice john jack sally
bob alice john jack sally

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

mixemup-2.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

mixemup-2.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file mixemup-2.1.0.tar.gz.

File metadata

  • Download URL: mixemup-2.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for mixemup-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0da949689016282f73acc65d2a895cbedcebf257da719bd71ee145235d98cd09
MD5 772afcbd6a5e6c79ae4d3adb3c678af7
BLAKE2b-256 97f227ca22c10e6e6a6d0e1e63d2d29541f80494c6ed7099b95e382024bc062e

See more details on using hashes here.

File details

Details for the file mixemup-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: mixemup-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for mixemup-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15d7cd58f93f41cdca3dca1cd9e67ad6bc35ccbd5d6a38988fd566c67bec3353
MD5 05bd6cb7fdbbb0f8ddc9af044200dd7d
BLAKE2b-256 10b3111bdbbf35dfbcd4e6e6b0b2510d98bd00e727fe2f902a7167a2d6799d98

See more details on using hashes here.

Supported by

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