Some semi-useful functions for strings
Project description
String Booster Pack
-A small collection of semi-useful functions for strings
-Content List:
cctrans(txt)
-Credit Card Transformer
-Replaces all but the last 4 characters of a string with '*'
-Warns if not 16 characters
sstrans(txt)
-Social Security Transformer
-Replaces all but the last 4 characters of a string with '*'
-Warns if not 9 characters
passgen(length=8)
-Password Generator
-Generates a random password of a specified length (default 8 characters)
btitle(txt, lowers=['and', 'the', 'of', 'if', 'in', 'on', 'with'])
-Better Title
-Like title(), but better!
-Capitalizes all words in a string excluding some words commonly kept lowercase
emailfinder(txt)
-Email Finder
-Finds email addresses in a string and returns a list of them
censor(txt, words=[], sub='*')
-Censor
-Replaces designated words in a string with '*'
redactor(txt, words=[], replacement='[redacted]')
-Redactor
-Replaces designated words in a string with '[redacted]'
asciifinder(txt)
-ASCii Finder
-Creates a dictionary of each unique character in a string and its ASCii value
asciicipher(txt, seed=None)
-ASCii Cipher
-A simple substitution cipher that encrypts a string
-Changes each character into a new one by adding a random number (1-10) to its ASCii value
asciidecrypter(txt, key=None)
-ASCii Decrypter
-Returns the transformed string from ASCii Cipher to its original form
Please visit my page (https://github.com/coy0tecode/String-Booster-Pack) for more information on this package/questions/concerns/to have a look around.
Project details
Release history Release notifications | RSS feed
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 string_booster_pack-1.0.0.tar.gz
.
File metadata
- Download URL: string_booster_pack-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3.post20210118 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6ff1d57989b499d33d35398a125acade9c3a34963fb90ac7d44ad89d3a6ab633
|
|
MD5 |
9de060141facbe4ba51a9ec0cf2ffe49
|
|
BLAKE2b-256 |
99cae6065df85fd4b863d45368b6b7c54bb15b8f3e7e04ce48b205e3ac58d7bb
|
File details
Details for the file string_booster_pack-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: string_booster_pack-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3.post20210118 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ddcd3790c2901babd04870340d3fcda58db5c3285df07674f269a446a5ff9bd3
|
|
MD5 |
f5f585d3f5e0441d90cc679e010cc4b8
|
|
BLAKE2b-256 |
d9c91b8ff25afcb90a39eee237ef70015c79d696a769ef4d8ae5b43ff73caf8e
|