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
Built Distribution
File details
Details for the file char-collection-1.2.0.tar.gz
.
File metadata
- Download URL: char-collection-1.2.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 766c09eb264ea951a884e148ffa97a821ad11e62936e0cdfe14314534823c752 |
|
MD5 | 417a79fb31bc0e260ec9efe2a7c3eb7a |
|
BLAKE2b-256 | 50f7f2a33de194da57d8b3e5d853b8292c71d5f0033c50fe67ed1dbea5113fda |
File details
Details for the file char_collection-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: char_collection-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 131dca6d7b8584870966d5b285faaa8ec6faeb07ba5dc058cbd2807ef5ad1e3b |
|
MD5 | 9e46369826668cb68e0b4460e44e44a0 |
|
BLAKE2b-256 | ed5ff0a448cc604492ae995eab99fcbfb58d1decdc68668f5b003f59bf039e66 |