python3-convertertools

Tools for converting Python data types

Description

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"})

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/bluetooth-devices/convertertools


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-convertertools