Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

misc for string

Project description

texting

misc for string

Functions

  • has_ansi
  • lange
  • pad: lpad, mpad, rpad
  • str_value

Usage

from texting.has_ansi import has_ansi
from texting.lange import lange
words = [
    'peace',
    '\u001B[4mwar\u001B[0m',
    '\u001b[38;2;255;255;85mtolstoy\u001b[0m',
]

for word in words:
    print(f'[{word}] [has_ansi] ({has_ansi(word)}) [lange] ({lange(word)})')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for texting, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size texting-0.0.13-py3-none-any.whl (10.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size texting-0.0.13.tar.gz (14.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page