Skip to main content

A print tool that wraps text to a specified width.

Project description

A print tool that wraps text to a specified width.

Usage:

from wrap_print import WrapPrint

wp = WrapPrint(20)
wp.print('12345678901234567890')
wp.print('This module provides access to', end='')
wp.print(' the Unicode Character Database (UCD)', end='')
wp.print(' which defines character properties', end='')
wp.print(' for all Unicode characters. The data contained', end='')
wp.print(' in this database is compiled from the UCD version 15.1.0.')
wp.print('這個模組提供了對 Unicode 字元資料庫(UCD)的存取,', end='')
wp.print('該資料庫定義了所有 Unicode 字元的字元屬性。', end='')
wp.print('這個資料庫中的資料是從 UCD 15.1.0 版本編譯而來的。')

Result:

12345678901234567890

This module provides
 access to the Unico
de Character Databas
e (UCD) which define
s character properti
es for all Unicode c
haracters. The data 
contained in this da
tabase is compiled f
rom the UCD version 
15.1.0.
這個模組提供了對 Uni
code 字元資料庫(UCD
)的存取,該資料庫定
義了所有 Unicode 字元
的字元屬性。這個資料
庫中的資料是從 UCD 1
5.1.0 版本編譯而來的
。

It counts the CJK wide characters the fullwidth characters as 2 characters.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wrap_print-0.1.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file wrap_print-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: wrap_print-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for wrap_print-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 efc8480d1508f320161ae443e588d9b831e69052d536a171d152c28bc06f4b7a
MD5 095eb3be38f81aa19b3dcbdb0cd9407f
BLAKE2b-256 8e997a96a3fe10c5f08736e6cbb79c1a2519190212d40fcbf0bdb367246cd169

See more details on using hashes here.

Supported by

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