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.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for dict_converter-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89b24d49923d4b81fbb52fd6fc57c7b353b466fe9f8a0dee63ef72e74c61c5c |
|
MD5 | f06b7e68c7ba349be99b43a9e7f34553 |
|
BLAKE2b-256 | 730b173dc33ebeae0ef0737b3b377abaa0a0392f0f7d2abea6636e14a5af96af |