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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wrap_print-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61c4de8b233082f1f160fd5021a8d752a9fa7d5c37bb735d830e338038a86377
MD5 fd5dd8c54f47a785448b5b4891cb90bf
BLAKE2b-256 eebf98a93a4964123024efd7a3220db861c47250ae8dbcb036409132f95714bd

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