Skip to main content

A chain-line dict converter in Python 3

Project description


A chain-line dict converter in Python 3


>>> from dict_converter import DictConverter
>>> a = {'a': 'a', 'b': 'b', 0: 0}
>>> DictConverter(a).add(0, lambda s: s + 1).add(['a', 'b'], str.upper).result()
{'a':'A','b':'B', 0:1}


.. code-block:: shell
pip install condition_chain

Yixian Du (

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dict-converter, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size dict_converter-0.1.2-py2.py3-none-any.whl (1.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size dict-converter-0.1.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page