Skip to content

Repository files navigation

string_py

PyPIDocumentation

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

fromstring_pyimportFormatprint(Format.align(values={"Username:": "John", "Register Date:": "01.01.2001"}))
Username: John
Register Date: 01.01.2001

Manipulation Example

fromstring_pyimportStrprint(Str("Hello World!").first(5))
Hello

Information Example

fromstring_pyimportStrprint(Str("Hello World!").get_upper(index=True))
{0: 'H', 6: 'W'}

Printer Example

fromstring_pyimportPrinterprint=Printer()
print.time("Hello World!")
[04.04 | 03:11:07] Hello World!

About

Utils for strings in python

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages