Skip to main content

fuzstr

Developer Guide

Setup

# create conda environment
$ mamba env create -f env.yml

# update conda environment
$ mamba env update -n fuzstr --file env.yml

Install

pip install -e .

# install from pypi
pip install fuzstr

nbdev

# activate conda environment
$ conda activate fuzstr

# make sure the fuzstr package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to the fuzstr package
$ nbdev_prepare

Publishing

# publish to pypi
$ nbdev_pypi

# publish to conda
$ nbdev_conda --build_args '-c conda-forge'
$ nbdev_conda --mambabuild --build_args '-c conda-forge -c dsm-72'

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/dsm-72/fuzstr.git

or from conda

$ conda install -c dsm-72 fuzstr

or from pypi

$ pip install fuzstr

Documentation

Documentation can be found hosted on GitHub repository pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

fuzstr

apple = fuzstr('Apple', icase=False, ispace=False, iunder=False, cutoff=1)
grape = fuzstr('Grape', icase=True,  ispace=True,  iunder=True,  cutoff=1)
mango = fuzstr('Mango')

for fruit in (apple, grape, mango):
    rstr = fruit.raw.lower()
    print(
        f'{fruit}:', 
        fruit == fuzstr(rstr),       fruit == fruit.makesame(rstr), 
        fruit == fruit.makesame(rstr), fruit == fuzstr(rstr),
    )
Apple: False False False False
Grape: True True True True
Mango: True True True True
apple.prep(apple), apple.prep(mango), mango.prep(apple), mango.prep(mango), issubclass(type(mango), fuzstr)
('Apple', 'Mango', 'apple', 'mango', True)

Metadata

Release files for fuzstr 0.0.8

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

Source distribution (sdist)

Source distribution for fuzstr 0.0.8
File Size Uploaded
fuzstr-0.0.8.tar.gz 10.3 kB Details

Built distribution (wheel)

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

Total release size: 19.9 kB

Release files / fuzstr-0.0.8.tar.gz

Download URL fuzstr-0.0.8.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ae7afd8bbda003d9f5ffba264b983d4feb8610f6138fa0159616a4804089edb5
BLAKE2b-256 checksum
How to use checksums
2095025702a755ea496bf9ac764f4b7292c9f48b32e349934b9854f636b06460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / fuzstr-0.0.8-py3-none-any.whl

Download URL fuzstr-0.0.8-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
177e45d83191f2725b461cc06118645a65d1110a8dc897dda8b140f239c486a0
BLAKE2b-256 checksum
How to use checksums
77d7a478d704904df96a4918c6d1e0afb59a5bd1fbef7e7cd40234fa139a18b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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