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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for string_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 548c26a3f4c438ca2cf84d433d4cdf2c2656d913b111a7a918078e66cf310813
MD5 532372007341ab39ac3e8a58fe883ef8
BLAKE2b-256 2cd983135fbb49c206c945e02dfb1c40150ed0d1c0e28230f3725af18e00217a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: string_py-0.1.1-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.11.2

File hashes

Hashes for string_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ecfe35ddf934408f8ad4df2216ab7a495909de8dad3c495bc2d2b6a6221be5a
MD5 e3fc7d73b2475caf8c5785e353da9f99
BLAKE2b-256 65ee3e7b6c60bd98024622a174917f7c69147565088db8ddb0cc989bbb4f0505

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