Skip to main content

Match company names against a database of names and variations

Project description

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

Basic usage:

from matchco import subsequences, NoMatchError, bestmatch
name = "mygreat korp"
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(name, candidates, multiple=True)
except NoMatchError:
match = None
print(match or "no match for '%s' found" % name)


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matchco-1.3.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

matchco-1.3-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page