Skip to main content

Abstraction layer for creating hash maps to speed up extracting subsets out of objects in collection

Project description

matchbox

Latest PyPI version Documentation Status Wheel Status Supported Python Versions License

Package status

Tests Coverage Status Requirements Status
Matchbox is a simple python library designed to make selecting object, or object’s set based on

required characteristics quick operation. No iterating, and no value checking on actual objects, just select and operations on dictionaries.

Package resources

CHANGELOG

unreleased

  • small code enhancement during adding matching entities to boxes

  • remove method - ability to remove entity from already built box

  • fix license information

0.3.0

  • added short glossary

  • updated docs to reflect naming changes

  • rewritten usage

  • renamed various object’s usages and index_object to entity [thanks Michael Sweeney]

  • renamed characteristics_value and value references to traits, as in Characteristic’s trait. [thanks Michael Sweeney]

  • renamed MatchBox.not_matching method into MatchBox.mismatch - signature remained the same.

  • only None and empty list will be treated as a value not used for matching

  • added repr method to box

  • renamed exclude_unknown to mismatch_unknown to clarify set’s meaning

  • Extracted indexing logic from MatchBox to a base class.

0.2.0

  • extended tests to cover python 3.5

  • merge MultiMatchBox into MatchBox - now anyone extending MatchBoxes will be able to work with value extractors rather than re-implementing MatchBoxes.

0.1.0

  • MatchBox - single value based Matching Box

  • MultiMatchBox - multivalue based Matching Box

  • package structure

  • documentation

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

matchbox-0.3.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

matchbox-0.3.0-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file matchbox-0.3.0.tar.gz.

File metadata

  • Download URL: matchbox-0.3.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for matchbox-0.3.0.tar.gz
Algorithm Hash digest
SHA256 87c73aef77e4a68d18a22c88181b8b39824a1e5f22545d7ae2b7d4c2f4a02a6f
MD5 eed4d9fd219d38e0c1d7fad416732751
BLAKE2b-256 577a39468e5cf3728973074f545e9287e359edeb0807f59133d754b633517b1a

See more details on using hashes here.

File details

Details for the file matchbox-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for matchbox-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f7820957bfd5ba176d59659a024b7006895f69b38980a11bce288aab856d0eb6
MD5 473221d4fe78eb99168d2057e0ad4e82
BLAKE2b-256 e986b437b9232e9703b83032ba294c5bcfc9b5aa57ebcee8eed1c827b44f2acd

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