Create generalHelper.py

This commit is contained in:
Josh Smith 2019-02-11 06:58:16 -05:00 committed by GitHub
parent cd08451cd2
commit 3f69038285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

7
helpers/generalHelper.py Normal file
View File

@ -0,0 +1,7 @@
def zingonify(d):
"""
Zingonifies a string
:param d: input dict
:return: zingonified dict as str
"""
return "|".join(f"{k}:{v}" for k, v in d.items())