NOhs / dkey

This module allows to set keys in a dict as deprecated, giving the option of different warnings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DKey - Deprecating Dict Keys

travis

coveralls

readthedocs

PyPI

license: MIT

codacy

requires.io

The dkey module allows you to deprecate the use of selected keys in a given dictionary thus making API changes involving dictionaries less disruptive. To learn more about how to use it head over to the Documentation.

Installation

To install this package simply use pip:

pip install dkey

Usage example

Let's say we have a dict with an old key that we want to replace with a new one.

image

About

This module allows to set keys in a dict as deprecated, giving the option of different warnings.

License:MIT License


Languages

Language:Python 100.0%