Skip to main content

Scoring and best match picking.

Project description

Installing

pip3 install explore

Quick Usage

import explore

# yummy foods to choose from
foods = ('pasta', 'glazed ham', 'salted broccoli', 'raw anchovy', 'peking duck')

# choosing during a keyboard stroke
food = explore.pick(foods, 'borlcoki')

More Complex

import explore

# lots of yummy food info
foods = food_api.get_all()

# match according to these attributes
fetch = lambda food: (food.id, food.name, food.color)

# generator of (food, score) pairs
pairs = explore.generic(fetch, values, 'gween peepr')

# best matching one
food = explore.lead(pairs)

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

explore-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

explore-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file explore-1.0.0.tar.gz.

File metadata

  • Download URL: explore-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for explore-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c7d569f11521fd847230d59d869336edef0060af96c3c8a054752f6e1f85be04
MD5 4ef1488e8ed8d0886e5246555f058aa9
BLAKE2b-256 840532510d627b887ee706efb0d9f51a8f0825ce5b83de1c0ee0d5e212b4f1ca

See more details on using hashes here.

File details

Details for the file explore-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: explore-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for explore-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ea72d8085e924b7655048496a55b77362f488323a3ea34775ece8c2af33c750
MD5 ebbf73ee7ce12d80d118afe8d7f8bc25
BLAKE2b-256 d1985181d8591f22647be55ec19833ef619a8d74877b4eac2b747082918b136b

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