Skip to main content

Find what you're looking for in a flash with Huntela.

Project description

Huntela

Huntela makes searching in Python very simple.

>>> import huntela
>>> huntela.simple_search(term='app', items=['app', 'apple', 'hello', 'world'])
[
    {'confidence': 1, 'index': 0, 'value': 'app'},
    {'confidence': 0.6, 'index': 1, 'value': 'apple'}
]
>>> huntela.binary_search(term='a', items=['a', 'b', 'c'])
{'confidence': 1, 'index': 0, 'value': 'a'}
>>> huntela.search_for_least_frequent_items(size=1, ['a', 'b', 'a', 'e', 'a', 'e'])
[{'confidence': 1, 'index': [1], 'value': 'b'}]
>>> huntela.search_for_most_frequent_items(size=2, ['a', 'b', 'a', 'e', 'a', 'e'])
[{'confidence': 1, 'value': 'a', 'index': [0, 2, 4]}, {'confidence': 1, 'value': 'e', 'index': [3, 5]}]

With a variety of algorithms to choose from, finding what you're looking for has never been easier.

From binary search to linear search and more, Huntela has everything you need to quickly and efficiently search through your data. With a simple, intuitive interface and lightning-fast performance, Huntela is the go-to package for anyone who needs to search through data.

Whether you're a data scientist, engineer, or developer, Huntela will help you find what you need.

Installation

Huntela officially supports Python 3.9 upwards.

Huntela is available on PyPi and it can be installed using pip

python -m pip install huntela

Building Release

  1. Go to the Python project's root directory contrib/python.
  2. Delete the dist directory if it exists, to clean up all existing builds.
  3. Open huntela/setup.py and bump up the VERSION.
  4. Run the setup script to generate the package files python huntela/setup.py sdist bdist_wheel.
  5. Finally, upload the generated bits to PyPI twine upload dist/*.

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

huntela-0.0.12.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

huntela-0.0.12-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file huntela-0.0.12.tar.gz.

File metadata

  • Download URL: huntela-0.0.12.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for huntela-0.0.12.tar.gz
Algorithm Hash digest
SHA256 51ebe7a644f3bf4b6cb22d525df385f57b1d5d077288bdfc9495c2d39b7d1615
MD5 eb563e7a15d3fcfd7fa69067a202f9f5
BLAKE2b-256 49a591f9994339ca0950ae8a1479a47e817c375a73d03da5720fb1d666945be8

See more details on using hashes here.

Provenance

File details

Details for the file huntela-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: huntela-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for huntela-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 6128b734ffe83e38f9a1339595352bbc7cf57c617cc863eff2bcf44d5fae3b0e
MD5 2e676356df6a306502e253843254ba5c
BLAKE2b-256 a5476500fbc1bfbe579e415e7201bb0f87016a67f2f9d0af7b3474614c3a8461

See more details on using hashes here.

Provenance

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