Metadata-Version: 2.4 Name: convertertools Version: 1.1.0 Summary: Tools for converting python data types License-Expression: MIT License-File: LICENSE Author: J. Nick Koston Author-email: nick@koston.org Requires-Python: >=3.10 Classifier: Development Status :: 2 - Pre-Alpha Classifier: Intended Audience :: Developers Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 Classifier: Programming Language :: Python :: 3.14 Classifier: Topic :: Software Development :: Libraries Project-URL: Bug Tracker, https://github.com/bluetooth-devices/convertertools/issues Project-URL: Changelog, https://github.com/bluetooth-devices/convertertools/blob/main/CHANGELOG.md Project-URL: Documentation, https://convertertools.readthedocs.io Project-URL: Repository, https://github.com/bluetooth-devices/convertertools Description-Content-Type: text/markdown # convertertools

CI Status Documentation Status Test coverage percentage

Poetry Ruff pre-commit

PyPI Version Supported Python versions License

--- **Documentation**: https://convertertools.readthedocs.io **Source Code**: https://github.com/bluetooth-devices/convertertools --- Tools for converting python data types These are very simple tools for manipulating python data structures to avoid writing out the same code many times in libraries. ## Installation Install this via pip (or your favourite package manager): `pip install convertertools` ## Usage Note that specific types are required for maximum performance. ```python 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"}) # pop_dict_set_if_none ignores missing keys and only # removes them if their value is None pop_dict_set_if_none(d, {"a", "b"}) ``` ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Bluetooth Devices
Bluetooth Devices

💻 🤔 📖
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## Credits This package was created with [Copier](https://copier.readthedocs.io/) and the [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template) project template.