Skip to main content

Pyaliner

Library for aligning and visually comparing sequential data in the terminal.

paired ground-truth vs predicted comparison

compact

Compact paired ground-truth vs predicted

classic

Classic paired ground-truth vs predicted

inlined ground-truth vs predicted comparison

compact

Compact inlined ground-truth vs predicted

classic

Classic inlined ground-truth vs predicted

paired input vs ground-truth vs predicted comparison

compact

Compact paired input vs ground-truth vs predicted

classic

Classic paired input vs ground-truth vs predicted

paired ground-truth vs 1st predicted vs 2nd predicted comparison

Classic paired ground-truth vs 1st predicted vs 2nd predicted

alignment

>>> from pyaliner import align, COMPACT

>>> align('Example invalid invalid sentence'.split(), 'Example sentence'.split())
(('Example', 'invalid', 'invalid', 'sentence'), ('Example', '⎵', '⎵', 'sentence'))

>>> align('Example invalid invalid sentence'.split(), 'Example sentence'.split(), kind=COMPACT)
(('Example', 'invalid∙invalid', 'sentence'), ('Example', '⎵', 'sentence'))

Limitations

  • Three-way alignment uses a slow heuristic.
  • Wide characters, e.g., East Asian scripts, are not properly aligned with narrow ones

Installing

Install with pip:

pip install pyaliner

Testing

Unit tests are written with pytest and hypothesis. Run with:

pip install pytest hypothesis

pytest

Changelog

Check the Changelog for fixes and enhancements of each version.

License

Copyright Jose Llarena 2022

Distributed under the terms of the MIT license, Pyaliner is free and open source software.

Metadata

Release files for pyaliner 0.1.2

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

Source distribution (sdist)

Source distribution for pyaliner 0.1.2
File Size Uploaded Provenance
pyaliner-0.1.2.tar.gz 13.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyaliner 0.1.2
File Interpreter ABI Platform
pyaliner-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / pyaliner-0.1.2.tar.gz

Download URL pyaliner-0.1.2.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8904a71285076cde0cdddd9e128cbe63d5074b1cddeaaf943a3f2d86000349ee
BLAKE2b-256 checksum
How to use checksums
918131b2d2312c87349792788669a535c9e1a5b1cf4dd883dd50df23f49490e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / pyaliner-0.1.2-py3-none-any.whl

Download URL pyaliner-0.1.2-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd2c14a7b18d5bb183a5f44b382b6dc785fb3b6b4a46cd7832eca85cf8118e5d
BLAKE2b-256 checksum
How to use checksums
999b2402214975e1c1f4c145bedc1937846266d543ff314fcac99adda817007a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for pyaliner 0.1.2

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