Skip to main content
Wordlist
Build Status Coverage Status Requirements Status

Generates all possible permutations of a given charset.

Developed by Alex Pellegrini.

Code and performance optimisation by Daniele Bonadiman.

Installing:

$ pip install wordlist
Usage:

There are two ways to use wordlist (command line, python)

Command-line

Generate all the possible words with a given charset:

$ wordlist [charset]
Generate all the possible words with length within a given interval (e.g. from 2 to 5):

$ wordlist [charset] -m 2 -M 5
Generate following a given pattern:

$ wordlist [charset] @@q@@er@t@y
Save a list to file:

$ wordlist [charset] -o list.txt
or:

$ wordlist [charset] > list.txt
Python

Generate all the possible words with length within a given interval (e.g. from 2 to 5):

import wordlist
generator = wordlist.Generator('charset')
for each in generator.generate(2, 5):
print(each)
Generate following a given pattern:

import wordlist
generator = wordlist.Generator('charset')
for each in generator.generate_with_pattern('@@q@@er@t@y'):
print(each)
[charset]

There are to ways to pass the charset to the script:

A simple list of characters

$ wordlist abcxyz987

A list of ranges following the simple regex (\w-\w)

$ wordlist a-z0-9A-Z

Pattern

The pattern should be like:

@@q@@er@t@y

The script will replace every @ symbol with every letter in the charset so as to get every possible permutation. Every other symbol will be a fixed character present in every string. In this example, every generated string will contain a q at the 3rd position an e at the 6th and so on.

Contributing

$ git clone https://github.com/rexos/wordlist.git
$ cd wordlist
$ pip install -r requirements.txt
$ nosetests
And open a pull request!

Metadata

Release files for wordlist 1.0.1

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

Source distribution (sdist)

Source distribution for wordlist 1.0.1
File Size Uploaded Provenance
wordlist-1.0.1.tar.gz 3.4 kB Without provenance Details

Release files / wordlist-1.0.1.tar.gz

Download URL wordlist-1.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c1c6383943da8aed9273c2c6523573d47f1c7248df878d0c2ef7a6d658a33215
BLAKE2b-256 checksum
How to use checksums
d216ec3e0dba73d6661349a0ef8c6d99ac753ca14ac06abaa4574aca9a92b78c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wordlist 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

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