Utils for strings in python
Project description
string_py
A Python package to simplify working with strings
Installation
To install the library directly from PyPI you can just run the following command:
# Linux/macOS
python3 -m pip install -U string-py
# Windows
py -3 -m pip install -U string-py
Format Example
from string_py import Format
print(Format.align(values={"Username:": "John", "Register Date:": "01.01.2001"}))
Username: John
Register Date: 01.01.2001
Manipulation Example
from string_py import Str
print(Str("Hello World!").first(5))
Hello
Information Example
from string_py import Str
print(Str("Hello World!").get_upper(index=True))
{0: 'H', 6: 'W'}
Printer Example
from string_py import Printer
print = Printer()
print.time("Hello World!")
[04.04 | 03:11:07] Hello World!
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
string_py-0.1.3.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for string_py-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d8f08c5a5b863778272fa019fbefcf68ca36f372a47b6585a450a2382326629 |
|
MD5 | 4d846a1d75a954ff220208e251892bdf |
|
BLAKE2b-256 | 2a5d7c59fe2a1484e604099fd42fbd2e8d729c23b3555f555ae46ade39fb96a8 |