Skip to main content

String Comparison

Text normalization for string comparison in Python.

This maps a Unicode code point key represented as an integer to a corresponding ASCII character mapping. In some cases such as Hebrew niqqud & cantillation, we remove the character altogether or replace certain punctuation with a space.

In addition, some characters are removed prior to normalization. For example, Unicode control chars.

Requirements

This project requires Python 3.7+

Installation

To install with pip

pip install string_comparison

Usage

import string_comparison
normalized = string_comparison.normalize("é")
assert normalized == "e"

Metadata

Release files for string-comparison 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for string-comparison 1.1.0
File Size Uploaded Provenance
string_comparison-1.1.0.tar.gz 6.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for string-comparison 1.1.0
File Interpreter ABI Platform
string_comparison-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / string_comparison-1.1.0.tar.gz

Download URL string_comparison-1.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
09aa25595472cb2ba3adbaf0d642541d7854f6b90619c01b2a7a3381b01a8bac
BLAKE2b-256 checksum
How to use checksums
775cee3dc2f0db3573f930852a1485e38a924def848bcf853bc95ca0cd757793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

Release files / string_comparison-1.1.0-py3-none-any.whl

Download URL string_comparison-1.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46cda70eaafcf1bdc43c081f0eddcd2d2985efe137e7f71e530fc0c6440b2401
BLAKE2b-256 checksum
How to use checksums
bb234338a943d6de7bc7c2dde669c08803e214eeeec12de9ca6a32b4592fe436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

Security for string-comparison 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page