Skip to main content

Utils for strings in python

Project description

string_py

PyPI

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.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

string_py-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file string_py-0.1.0.tar.gz.

File metadata

  • Download URL: string_py-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for string_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2e0ed7f6b199af611b491e8efcb3d910404f574cd83d8b43dc6d7cef5bc3c96d
MD5 e016b97e3ca48523618c7fc9150e1788
BLAKE2b-256 ba77e33387a198bf4a88c013b4590e7a50127d56fb51b4ef4642d6f73ae1744d

See more details on using hashes here.

File details

Details for the file string_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: string_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for string_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbbdbdffe5e09153155ceacab5f3bc171359ff8895a353e5c252bda449c8ed54
MD5 d203c6fb655b3013ef5e8bbd7d62550a
BLAKE2b-256 79494a3866d6d68a69eafbe3448da3a3c337caa223fb53e42cb8fbfae8861522

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page