Skip to main content

A dictionary that always finds what it's looking for.

Project description

Are you tired of those pesky KeyError exceptions popping up in your programs? Do you need certain keys planted in your dictionaries? Do you just want to get away with it all?

Inspired by Manitowoc County Sheriff’s Lieutenant James Lenk, Lenk is a dictionary-like class that plants values for any key you want to look for. It comes with one key planted by default.

Installation

pip install lenk

Usage

You use Lenk just like any other dictionary.

>>> from lenk import Lenk
>>> evidence = Lenk()
>>> evidence["Toyota Rav4"]
True
>>> evidence["something else"]
'k16uxjcu9wglu25v2kl0'

See? It found that Toyota Rav4 key no problem! It also finds any other key you’d want to look for.

About

Manitowoc County Sheriff’s Lieutenant James Lenk is a bad person.

http://i.imgur.com/EHCNSYV.jpg

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

lenk-1.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

lenk-1.1-py2-none-any.whl (3.4 kB view details)

Uploaded Python 2

File details

Details for the file lenk-1.1.tar.gz.

File metadata

  • Download URL: lenk-1.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lenk-1.1.tar.gz
Algorithm Hash digest
SHA256 ff1da2caf2077b7736d9646647e2e4bcdcc7e3e06f6b9fbaa9bc4b755740ef25
MD5 ed1a0312af18f4f309b558f33fb748ff
BLAKE2b-256 37726412ffd73c943b77eb579418f8c82b28f76aeccbbc5be4503a66ac6f2edc

See more details on using hashes here.

Provenance

File details

Details for the file lenk-1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for lenk-1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 19a88cfae0146db61a22f2eb3719bab424990f54988e4e76827300f4fccb7fa6
MD5 c292090c4cd57bb4c599477f7a1c59f3
BLAKE2b-256 f06bfa89d3d6b56ee3a63b14c66bb4852b20939474b9912a9af91cc64d98ad54

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