Python package for playing with strings
Project description
string-decorator
Python Module to have fun with strings
Usage
from string_decorator import string_decorator
print(string_decorator.randcase("hello"))
Output
hElLo
You can also import it as
from string_decorator.string_decorator import randcase
print(randcase("hello"))
Documentation
Name | Description |
---|---|
randcase |
Changes the given text to random cases (upper or lower) |
snakecase |
Changes the given text to snake_case |
constantcase |
Changes the given text to CONSTANT_CASE |
kebabcase |
Changes the given text to kebab-case |
headercase |
Changes the given text to PascalCase |
camelcase |
Changes the given text to camelCase |
dotcase |
Changes the given text to dot.case |
pathcase |
Changes the given text to path/case |
swapcase |
Changes each upper characters to lower and vice versa |
scramble_sentence |
Returns the sentence in random order Eg: 'Hello my friend' might change to 'my friend Hello' |
sentence_reverse |
Reverses given sentence Eg: 'Hello world' changes to 'world Hello' |
random_string |
Generates a random string comprising of lower cased or upper cased characters, numbers, symbols |
str_encode |
Encodes the given text into bytes format |
bytes_decode |
Decodes bytes back to string |
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
Close
Hashes for string_decorator-0.1.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3be6b3b46e173c11479e8883f5e48df6a1b3af164b28185829e3ded80a184a5c |
|
MD5 | 6fb31819b160ba839e98c95f277fa2ef |
|
BLAKE2b-256 | 624291eb31b8bec66452539e2255c0d70ea458e1a0b64c7236ec547195f639a9 |