Skip to main content

No project description provided

Project description

py-unicode-linebreak

Python bindings for the Rust crate unicode-linebreak.

Installation

pip install unicode-linebreak

Usage

from unicode_linebreak import linebreaks

string = 'a b\nc\r\nd e\rf end'
expected_result = [
    (2, False), (4, True), (7, True), (9, False),
    (11, True), (13, False), (16, True)
]
assert linebreaks(string) == expected_result

Returns a list of tuples with the index of the linebreak and a boolean indicating whether the linebreak is a mandatory break.

Contribute

python -m virtualenv venv
source venv/bin/activate
pip install -r dev-requirements.txt
maturin develop && python -m unittest

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

unicode_linebreak-0.0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distributions

unicode_linebreak-0.0.1-cp311-none-win_amd64.whl (114.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

unicode_linebreak-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

unicode_linebreak-0.0.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (455.0 kB view details)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

unicode_linebreak-0.0.1-cp310-none-win_amd64.whl (114.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

unicode_linebreak-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

unicode_linebreak-0.0.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (455.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

unicode_linebreak-0.0.1-cp39-none-win_amd64.whl (114.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

unicode_linebreak-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

unicode_linebreak-0.0.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (455.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

unicode_linebreak-0.0.1-cp38-none-win_amd64.whl (114.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

unicode_linebreak-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

unicode_linebreak-0.0.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (454.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

unicode_linebreak-0.0.1-cp37-none-win_amd64.whl (114.0 kB view details)

Uploaded CPython 3.7 Windows x86-64

unicode_linebreak-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

unicode_linebreak-0.0.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (454.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

File details

Details for the file unicode_linebreak-0.0.1.tar.gz.

File metadata

  • Download URL: unicode_linebreak-0.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.12

File hashes

Hashes for unicode_linebreak-0.0.1.tar.gz
Algorithm Hash digest
SHA256 17c9504f3f8b17d84263006600ffbba98b90342455a446b32eb0d612f88817e5
MD5 5f77651078299b4dd2da0e8753751d35
BLAKE2b-256 3c59065a0db99224c2ba382ce964bfc2488b2b1f481f724c4be2779ace84933b

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3bc365e7b949b115ef1f21136e4d441f616f144e75554fc2093c40b38b0febf8
MD5 f08deb395c5d16f8c79e62309bcae17c
BLAKE2b-256 0b3aa83242ea792be223f6a231bb41908892621186d57d4e4f3bde088409dcb3

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87e96c2998aa26c892c623f4c5312e0de9c9e2a1aa80df8cec68263d9f210ee2
MD5 eb94990b85761599740a11c13db76d60
BLAKE2b-256 4005a0763febc39747a589d5c6913b77fef2d010760dd15576ea1f73cf34636a

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 173ef47632e7afd0e2ed0eec6756ae8ef219cc1087bc5ded4de89ea414e81519
MD5 34b44f88fc37c0356eb7c2d6df7de118
BLAKE2b-256 1f41a4f9725444a5b679c938c77454bbee8f702f6e92e9ab7a0809b7a64ff77c

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 417bb2d4852a328baba5daa074a2cc3beebe7cc61f976e5af03982d9b66c6ef3
MD5 9cf8396cb8d9008749454c2b3ceb5b00
BLAKE2b-256 5e4d1e1f2b0cea0b218900b10c2b1eb0f5448993bd3bbd2dfaad66cfff5c3cf2

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f845e143a1e0fe11846c2df6826a634b0a5538552c44910c28f84df9ad5206a
MD5 8e101801f4bad051f6971457cf0add26
BLAKE2b-256 bbbf438e2016af2c1def0aa645e77ba13491657b67eec5f067ab9c74d7ef617e

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d4096ec385b55ed2b657ac3f5f0d935ef448b3483c918df0f3224006d111f469
MD5 4bda575299d04258b5a487fb90e3b68c
BLAKE2b-256 fcd628b6866aef21caba2eca07a598fe7e1cdc91fd782a45183b7e93cf35df98

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 a3692f1140112db05c4b4950565e9ff76ee5823e16ff8e7fc17546702427d934
MD5 36702a01462694fd527b8a3a4f87704d
BLAKE2b-256 719c0a3b731f90a069b7c183c4c3e395fbda6487fdf0e20ac33dc3cfd00b0dcc

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c0968bf7539f593a5a5d6b13db61c87f9343334ea6fc8011a557a8f166add789
MD5 3984a017113d2aa8933261788e6ca8fc
BLAKE2b-256 3e64584fb04a4e6280ba476b25c277d789a0bf3d7e8ce07a431369cda2087728

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 53ce87c27f3bf07ad505963f3e00c144565d318b19446178bff95d9933b87506
MD5 59ad4a398de7eaa1f12f27f0cf23e382
BLAKE2b-256 483cf183ce1111edfb006cefb8659b47c6046f1255388649bd79e31589db8f54

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 6932cfbfb04109210c714d92a3cd6711550f4c749e5a7668aeefcdefe63c1bb0
MD5 17be4838eac2a375ab7f2fe0229b4243
BLAKE2b-256 719655141c2f2a54a8cf01381407489478e811db2cadabb1289dc00c5bf4926f

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c79ba54cd37b6bf0ad8347a2224078a628113a7b19f41272e24ca51eac558a56
MD5 9d7a3fdd05aee805c3f05dd2ffc53008
BLAKE2b-256 5a3f0799aea2838e0c0aba233bbcf5a22bc675e31754a0080f96baa0464bfe36

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 55bb5fbd9323e8053f58f908341a94aeb5011f96f7a9d7dc93f7988ffc373d40
MD5 3c24c54ae9b866c9483908efe37204f7
BLAKE2b-256 4711384a50802eb30f14468e7f6ded19936caa227fc0347d00ce3111298fd455

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 91cbd3b12d5159193db243e5e29c63bd93f531e6c210a7630a91ac15472ff90b
MD5 caa9cb4ed63afc96002f15f53f770392
BLAKE2b-256 bf972132065ac958f0282db9ab58a267e7e29ed1182658905a149132eb9a27c7

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d92b597868449d75a04e7c665d086be2c3e6f71215270e0fb681b67edd7a3df1
MD5 77f9b814830839a8ce5cb4e72e40cb81
BLAKE2b-256 399a3a4b1e2413ca83bc05416b323ca7ed434bac105a61a53e6e85ff21a52f57

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e1ce4eb8fd2f4e07af303242e7afa9d8df7efd29cb1c0fe67d8491fda8b24ba5
MD5 7d2876720d9dcbd53968c6a3d116fb8d
BLAKE2b-256 5c4207ccce27ad2d057b1c0e14a3cdbdb31468979600fa214635b1a513414f8f

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 75ca84f53e4d5c081d8ea7ac226dbfbe56515a6365498c718d43853a15b037ec
MD5 18d2716766bd18de4a2559ab547fb004
BLAKE2b-256 212f4ea9beaf5e78b315aa9397027e50a982fb76d4e85984737a8048c925999c

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f9c5ebdfd13a21c89d09b9e4b737e8f196b933aad21ea00b79561227151e64de
MD5 3a4fbfbcf20c70854a59a08cec9da3a7
BLAKE2b-256 578ebba2e560cafbf36c2632b5353ff609168459953a6e0a1a0b6b1bf205559d

See more details on using hashes here.

File details

Details for the file unicode_linebreak-0.0.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for unicode_linebreak-0.0.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6259ac28d74306221610e11cec2cd456ac29c37772ea5886a2345f1c23ad037b
MD5 b2cc275fc1cb3c163ba89906e9a529a3
BLAKE2b-256 95c59ca7862bfafc3996158cc71c10406447bae8c469805a25401baa5579db5d

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