convertertools
Tools for converting python data types
What it is and what it does
convertertools is a minimal utility library for common dictionary and data structure manipulation patterns in Python. It provides functions like del_dict_tuple, del_dict_set, pop_dict_tuple, pop_dict_set, and pop_dict_set_if_none to remove or pop multiple keys from dictionaries in a single call, with variants that either raise KeyError on missing keys or silently ignore them.
The package is designed to reduce boilerplate code in libraries that repeatedly perform these operations. It is distributed as compiled wheels for Python 3.10 through 3.14 across major platforms and architectures, suggesting performance-critical use. The library has no runtime dependencies and is in pre-alpha development status, indicating it is still stabilizing its API.
Use it for:
- Remove multiple known keys from a configuration dictionary without writing a loop.
- Safely pop optional keys from a data structure, ignoring those that don't exist.
- Clean up intermediate dictionaries in data processing pipelines by bulk-deleting fields.
- Reduce boilerplate in libraries that frequently manipulate dictionary structures.
- Conditionally remove None-valued keys from a dictionary in a single operation.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides lightweight utilities for manipulating Python dictionaries and data structures, including functions to delete or pop multiple keys at once using tuples or sets.
Yes, if you frequently batch-remove dictionary keys and want to avoid repetitive code. The package is lightweight, has no dependencies, carries permissive MIT licensing, and is actively maintained. However, verify that the performance gain justifies the compiled dependency for your use case, and be aware it is pre-alpha, so the API may change.
Install
convertertools on PyPI
pip
pip install convertertoolsuv
uv add convertertoolspoetry
poetry add convertertoolsInstalling convertertools
Before you install
Medium install friction due to compiled wheels across multiple Python versions and platforms (cp311, cp312) and architectures (x86_64, arm64, armv7l, aarch64, musllinux). Maintenance is active with recent commits.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice.
Quickstart
from convertertools import del_dict_tuple, pop_dict_set
d = {"a": 1, "b": 2, "c": 3}
del_dict_tuple(d, ("a", "b")) # raises KeyError if keys missing
pop_dict_set(d, {"c"}) # ignores missing keys
Requires Python 3.10 or later.
Verify before relying
- Performance characteristics and benchmarks against native dict operations or alternative libraries.
- Whether the compiled wheels provide meaningful performance gains over pure Python equivalents.
- Scope and completeness of the utility function set beyond the documented examples.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 314 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 91,673/month — #13,508 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: convertertools-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl; convertertools-1.1.0-cp311-cp311-macosx_11_0_arm64.whl; convertertools-1.1.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; convertertools-1.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; convertertools-1.1.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; convertertools-1.1.0-cp311-cp311-musllinux_1_2_aarch64.whl; convertertools-1.1.0-cp311-cp311-musllinux_1_2_armv7l.whl; convertertools-1.1.0-cp311-cp311-musllinux_1_2_x86_64.whl; convertertools-1.1.0-cp311-cp311-win32.whl; convertertools-1.1.0-cp311-cp311-win_amd64.whl; convertertools-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl; convertertools-1.1.0-cp312-cp312-macosx_11_0_arm64.whl; convertertools-1.1.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; convertertools-1.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; convertertools-1.1.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl; convertertools-1.1.0-cp312-cp312-musllinux_1_2_aarch64.whl; convertertools-1.1.0-cp312-cp312-musllinux_1_2_armv7l.whl; convertertools-1.1.0-cp312-cp312-musllinux_1_2_x86_64.whl; convertertools-1.1.0-cp312-cp312-win32.whl; convertertools-1.1.0-cp312-cp312-win_amd64.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
bluetooth-data-toolsParses and manipulates Bluetooth Low Energy…
permissive · top 5,000 on PyPI
dictknifedictknife provides utility functions for…
permissive · top 15,000 on PyPI
bluetooth-adaptersEnumerates and locates Bluetooth adapters on a…
permissive · top 15,000 on PyPI
flatdictFlattens nested dictionaries into single-level…
permissive · top 5,000 on PyPI
bluetooth-sensor-state-dataProvides data models for parsing, storing, and…
permissive · top 15,000 on PyPI
uart-devicesProvides a Python interface to interact with…
permissive · top 15,000 on PyPI
easydictEasyDict wraps Python dictionaries to allow…
copyleft · top 5,000 on PyPI
habluetoothProvides high-availability Bluetooth…
permissive · top 5,000 on PyPI
wheelA command-line tool for inspecting, converting,…
permissive · top 100 on PyPI