Package: wnpp Severity: wishlist Owner: Edward Betts <edw...@4angle.com>
* Package name : python-convertertools Version : 0.5.0 Upstream Author : J. Nick Koston <n...@koston.org> * URL : https://github.com/bluetooth-devices/convertertools * License : MIT Programming Lang: Python Description : Tools for converting Python data types This library provides tools for manipulating Python data structures efficiently. It includes functions for deleting and popping elements in dictionaries using sets or tuples. These tools help in avoiding repetitive code by offering predefined methods for common operations on Python dictionaries. . Note that specific types are required for maximum performance. . Example usage: . from convertertools import (del_dict_tuple, del_dict_set, pop_dict_tuple, pop_dict_set) . # del_dict* raise KeyError on missing keys del_dict_tuple(d, ("a", "b")) del_dict_set(d, {"a", "b"}) . # pop_dict* ignores missing keys pop_dict_tuple(d, ("a", "b")) pop_dict_set(d, {"a", "b"}) This library is a dependancy of Home Assistant, the Python smart home platform. I plan to maintain it as part of the Home Assistant team.