Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


pip install lenk


You use Lenk just like any other dictionary.

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

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


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

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.4 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Jan 6, 2016
(1.9 kB) Copy SHA256 Hash SHA256
Source None Jan 6, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers