Skip to content
/ dkey Public

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

License

Notifications You must be signed in to change notification settings

NOhs/dkey

Repository files navigation

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.

https://raw.githubusercontent.com/nohs/dkey/master/img/usage.gif

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages