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

Uploaded Source

Built Distribution

explore-1.0.0-py3-none-any.whl (4.0 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