在python中审查敏感字符串数据。
expurgator的Python项目详细描述
清除器
在python中审查敏感字符串数据。
快速启动
安装时使用:
pip install expurgator
用法
喜欢这样:
fromexpurgatorimportshallow_dict_expurgatororig_dict={'user':'johnsmith','pass':'supersecret'}censored_dict=shallow_dict_expurgator(orig_dict)# censored_dict is now:# {'user': 'johnsmith', 'pass': '<SensitiveString>'}
建筑
要将此库构建为控制盘:
python setup.py bdist_wheel --universal
测试
首先,确保已安装pytest:
pip install pytest
要运行所有测试,只需执行以下操作:
py.test
法律
版权所有2018 IRESS Ltd。
许可证:apache许可证2.0。