A chain-line dict converter in Python 3
Project description
dict-converter
===============
A chain-line dict converter in Python 3
Example
-------
>>> 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}
Install
-------
.. code-block:: shell
pip install condition_chain
Author
------
Yixian Du (duyixian1234@outlook.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dict-converter-0.1.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for dict_converter-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9882ab52e570a853b73c80c03f6f82d12ad3c9b68fe99bcd1c193ddb57ec7e8 |
|
MD5 | 9d49f8cdb0b580fa5881c2fa0bedfb18 |
|
BLAKE2b-256 | ac786de734483448ccf709539b8039aeeb08c3e80ae4c13ff2006526df5bf28d |