Skip to main content

How about ___

Build status

Howabout is a Python library to suggest similar strings. Use it in a command-line project or anywhere where simple misspellings occur.

from howabout import best_match

choices = ['sat', 'sot']

# returns 'sat', since
#   'sat' -> 'sate'
#   'sot' -> 'sat' -> 'sate'
best_match('sate', choices)

Examples can be found under examples/.

Argparse

Python’s argparse library is not supported out of the box as it cannot be extended or patched.

Installation

Install with pip:

$ pip install howabout

Testing

Use tox to run the tests.

$ virtualenv --no-site-packages .python && source .python/bin/activate
$ pip install -r requirements.txt
$ tox

Metadata

Release files for howabout 1.1

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

Source distribution (sdist)

Source distribution for howabout 1.1
File Size Uploaded Provenance
howabout-1.1.tar.gz 3.7 kB Without provenance Details

Release files / howabout-1.1.tar.gz

Download URL howabout-1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
099e60c64ca76577faaf5c0d58150bf45bde0613fef5a9f9773b0a829206fc5c
BLAKE2b-256 checksum
How to use checksums
fa807748e165144725ee82ae252d6407314170cfd1a5b048356a559890a5f55c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for howabout 1.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file No provenance

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