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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: matchco-1.3.tar.gz
  • Upload date:
  • Size: 16.7 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.3.tar.gz
Algorithm Hash digest
SHA256 759c02ad2973ed2d03e339d8897704e88cc6761772cff2328572a815a5a79f95
MD5 fc3fc5a05eb12c6bd4abbab85c3e1d54
BLAKE2b-256 a054c006b66b35b9fb05062092a579755988d0a411cda23bc9609633c8f1bb36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: matchco-1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a7addfd7ff37478a26dd117298ddae1405aa553e9a8ea3a3c778c5b6f2bca0ab
MD5 a2c79709480e868a2d1142e3e55d9938
BLAKE2b-256 d138fae73b0854842ecbbfac9366e6170b98b28c11f24729c855634fc1394a9d

See more details on using hashes here.

Supported by

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