Skip to main content

Building random characters

Project description

CharCollection

With this module you can easily generate a sequence from 1 to 75 characters, including special characters (!@#$%^&*()_=+[]{};:"\|,). This is a stand-alone module, from dependencies , only built-in random module (for now).

There is also a class for generating a password from characters from 6 to 20, including special characters.

Simple use case:

from char_collection.collect import CharacterSequence

collect = CharacterSequence()
collect.collect(10) # Q#,PT^$o&W (random string)

Or you can generate a password like this:

from char_collection.collect_password import CollectPassword
generator = CollectPassword()
generator.collect(8) # B|Gd";;b

You can also use the CollectPasswordNotSpecialSymbol class, which will generate a password without special characters

from char_collection.collect_password import CollectPasswordNotSpecialSymbol
generator_not_special_symbol = CollectPasswordNotSpecialSymbol()
generator_not_special_symbol.collect(8) # L3nAIorm

You can use the password generator, for example, in a telegram bot by connecting this module with the bot. Password must be at least 6 and no more than 20 characters. If the length is false, returns None.

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

char-collection-1.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

char_collection-1.2.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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