skillfed

convertertools

Tools for converting python data types

convertertools v1.1.0 91.7K downloads/30d#13,508 on PyPI1
Permissive license MIT Active released

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 convertertools

uv

uv add convertertools

poetry

poetry add convertertools

Installing 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

Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries

Tags

dictionary key removal utilitiesbatch delete dict keyspython data structure helpersdict manipulation toolsremove multiple keys from dictpop dict keys by set or tuple
dict-utilitiesdata-structure-helpers

More Libraries packages