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 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)


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.2.4.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

matchco-1.2.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file matchco-1.2.4.tar.gz.

File metadata

  • Download URL: matchco-1.2.4.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for matchco-1.2.4.tar.gz
Algorithm Hash digest
SHA256 b0fdab383ce73831669243aad87122f613478a604ced22b44c423a6a91c49957
MD5 ed490bfed4461ea2159223450c8a1f58
BLAKE2b-256 f04e32ba73038d4c1776c81ba56fa2d6f6e13d8f086fd1d57f1848d604fc2a28

See more details on using hashes here.

File details

Details for the file matchco-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: matchco-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for matchco-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5e145b7575d4d385b48bdba90229ce0d2e0f442af8edf84f1b0067f7cb796457
MD5 1d90998a33c45bd82be366a49acf59fe
BLAKE2b-256 16a1234c5f259d4b60df8868ad067345111a2a4558d059f5cf8d60be99549087

See more details on using hashes here.

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