Metadata-Version: 2.1
Name: matchco
Version: 1.2.4
Summary: Match company names against a database of names and variations
Home-page: 
Author: Petri Savolainen
Author-email: petri@koodaamo.fi
License: GPL
Platform: UNKNOWN
Classifier: Topic :: Office/Business
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/plain
License-File: LICENSE.txt

Match organization names. See docs/ directory for more info.

Basic usage:

    from matchco import normalized, subsequences, NoMatchError, bestmatch
    name = "mygreat korp"
    nname = normalized(name)
    candidate1 = ("My Great Corp, Inc.", "My Great Corp", subsequences("My Great Corp".lower()))
    candidate2 = ("Other Corp Inc.", "Other Corp", subsequences("Other Corp Inc.".lower()))
    candidates = (candidate1, candidate2)
    try:
        match = bestmatch(nname, candidates, multiple=True)
    except NoMatchError:
        match = None
    print(match or "no match for '%s' found" % name)


