Python package for playing with strings
Project description
string-decorator
Python Module to have fun with strings
Usage
Example 1
from string_decorator import randcase
print(randcase("hello"))
Output
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
File details
Details for the file string-decorator-0.2.0.tar.gz
.
File metadata
- Download URL: string-decorator-0.2.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba026c0dbeaca9103ad2990abb9d652c456f5d2b134aed874c06b883527e91a |
|
MD5 | 11f514ba7372109059dbeede3776f9d3 |
|
BLAKE2b-256 | 8b1868ef9eb896529b499bfabb3e59bdd40fe956903ec828e0ada7f7e18bcde2 |
File details
Details for the file string_decorator-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: string_decorator-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01391d094a0ab01ad45a99522ca190bd89c0acdc123229ee4605ecb2ab4ba80d |
|
MD5 | a4f31ea0500da752c0712d121644eb51 |
|
BLAKE2b-256 | 0209bcfb84c9c644cfb9cfb2b25978a371e725c568c6281046558de844dd6e75 |