For editing strings in many ways.
Project description
📝 stringtools
Useful tool to edit strings in many ways.
It has tons of functions especially built to be fast and stable ⚡.
- order
- is_pangram
- camelCase
- count_char
- bricks
- generate_nick
Installation:
pip install stringtools
Usage/Examples
ispangram()
Checks if inputed string is pangram (If it has every letter from aplhabet) e.g:
is_pangram('Watch "Jeopardy!", Alex Trebek\'s fun TV quiz game.')
# -> True
is_pangram('Hello beautiful world!')
# -> False
camelCase()
Splits camelCase into two words e.g.
stringtools.camelCase("CamelCase")
# -> "Camel Case"
stringtools.camelCase("Camel Case", reverse_=True)
#-> "CamelCase"
count_char()
Returns dictionary with every character counted e.g
count_char("OOPp")
# -> {"O": 2, "P": 1, "p": 1}
count_char("OOPp")
# -> {"o": 2, "p": 2}
bricks()
Returns bricked version of string
bricks("Hello world!")
# -> "HeLlO WoRlD!
bricks("abcdef")
# -> "AbCdEf"
generate_nick()
Generate nicknames by inputed vowels, consonants, and other sounds.
for i in range(20):
print(stringtools.generate_nick(length=5))
# ->
# Irrol
# Uppuq
# Aguir
# Moury
# Uwrax
# Ezeoa
# Agaum
# Egeti
# Efuyu
# Iruek
# Qawze
# Oguei
# Hochu
# Maqod
# Suyff
# Idoor
# Keigh
# Uredi
# Eceuy
# Elere
Generate_password()
Generate very strong passwords.
You can choose these options for password:
- English (abcd...)
- Numerals (1234...)
- Special Symbols ('`<*...)
- Own symbols (Any)
Exclude similar characters (1, l, L, 0, o, O, etc.)
Generate_password(length=50, english=True, symbols=True, numerals=True, exclude_similarities=True)
# -> "C-3?r#$a#[7n>!5\7<8s,(4W)2324C44(-3[4,!%$-!1k1+(Mg"
Generate_password(length=50, english=False, symbols=True, numerals=True, uppercase=False)
# -> "_;53.?30,>92:;=.+$}>[>'6;8$1~_'>8$=504-`751]>434_&"
Authors
License 🔑
MIT - Copyright (c) 2022 Beksultan Artykbaev
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
stringtools-0.0.4.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for stringtools-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 424db57859acdda9a88ffdb4f12043ab8679fc40deab94e59a2334f10cbcb1ac |
|
MD5 | 09cd6af5fbdc94cfa35bebe8761b0408 |
|
BLAKE2b-256 | 0020367ca4f30f593196b3c2410f613e070986f8add2ecd6e681f39d90b99434 |