Skip to main content

Unicode normalization for stripping LLM artifacts

Project description

blandify (Python bindings)

Python bindings for the blandify Rust Unicode normalization library.

What it does

blandify.normalize(...) replaces common Unicode artifacts with plain ASCII forms, including:

  • smart quotes and apostrophes
  • Unicode dashes and minus signs
  • non-ASCII whitespace (including tab expansion to two spaces)
  • zero-width and directional markers
  • arrows, vulgar fractions, common math symbols, and common text symbols
  • optional German umlaut transliteration (ä -> ae, ö -> oe, ü -> ue, ß -> ss)

Development

From the repository root:

cd python
pixi run maturin develop --uv
pixi run pytest tests/

Or from the root with the configured task:

pixi run -e dev python-test

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

blandify-0.1.0.tar.gz (32.4 kB view details)

Uploaded Source

Built Distributions

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

blandify-0.1.0-cp312-abi3-win_amd64.whl (103.6 kB view details)

Uploaded CPython 3.12+Windows x86-64

blandify-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl (320.2 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

blandify-0.1.0-cp312-abi3-manylinux_2_34_x86_64.whl (243.1 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.34+ x86-64

blandify-0.1.0-cp312-abi3-macosx_11_0_arm64.whl (207.3 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

blandify-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl (212.7 kB view details)

Uploaded CPython 3.12+macOS 10.12+ x86-64

File details

Details for the file blandify-0.1.0.tar.gz.

File metadata

  • Download URL: blandify-0.1.0.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for blandify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3db407bd8d3dc0f14e04b83bc05d5640fb57e213d871bf3c322948536924bd9a
MD5 819584454ed3271a9931cb2d28bebdc5
BLAKE2b-256 2d2f99036e7ee4298ee569768b3369c256a6546e11c61d83119d9fb2a787b600

See more details on using hashes here.

Provenance

The following attestation bundles were made for blandify-0.1.0.tar.gz:

Publisher: build.yml on moritzwilksch/blandify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blandify-0.1.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: blandify-0.1.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 103.6 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for blandify-0.1.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 291b51b82fee487deb817a08b2bbe278636b03f176cecafa9d855c6468eea332
MD5 36a69a8b195477da13a198978cad1753
BLAKE2b-256 ccb55b7db860d0a9cc1bf85d14988fba3158c582eeb718bf226e4f7bf34259db

See more details on using hashes here.

Provenance

The following attestation bundles were made for blandify-0.1.0-cp312-abi3-win_amd64.whl:

Publisher: build.yml on moritzwilksch/blandify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blandify-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for blandify-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a604e311323b93877d5ea13568e233cbb0251b17b7122828621a31424fb0da91
MD5 094a084e24253c06ef035278bcedbfdf
BLAKE2b-256 e2656fcf6fc5257249669e7af0391365d10dd98bab9adcbbb3b29036acf64290

See more details on using hashes here.

Provenance

The following attestation bundles were made for blandify-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl:

Publisher: build.yml on moritzwilksch/blandify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blandify-0.1.0-cp312-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for blandify-0.1.0-cp312-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 686084fead008928fb0bfa19255c48b9370170ab5157baa8d6c0a7c0339a73c4
MD5 7405b1a26807d86017caf1702aba0ec7
BLAKE2b-256 d98fb84ee1ae0b84b092227cd5d0f68def54f5f0a170294666c862af155d4b85

See more details on using hashes here.

Provenance

The following attestation bundles were made for blandify-0.1.0-cp312-abi3-manylinux_2_34_x86_64.whl:

Publisher: build.yml on moritzwilksch/blandify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blandify-0.1.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for blandify-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18817e9f9ddaf98cf99b12d702ac2bdbdad242edbd66594c7e2eec9f671e8d98
MD5 a43bb2abecbb56cb718b76d455af05ca
BLAKE2b-256 3ae1ab96d19ac3fa89e3c976bba64f9c3e640bd27d105c774825d5917b21de22

See more details on using hashes here.

Provenance

The following attestation bundles were made for blandify-0.1.0-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: build.yml on moritzwilksch/blandify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file blandify-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for blandify-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f7acb479dcebd32e974ba777179626d288d9c9d0fd644d657b4a183b248d8b13
MD5 9696544022392fc5bf4065530261dcd4
BLAKE2b-256 78d2d825443522b073dc661e9e17c23f963b0ebe9639e745a89eda3afdfda7de

See more details on using hashes here.

Provenance

The following attestation bundles were made for blandify-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl:

Publisher: build.yml on moritzwilksch/blandify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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