在unqlite上以josn格式存储个人隐私信息。
pidb的Python项目详细描述
##PIDB
[![许可证](https://img.shields.io/badge/License-MIT-red.svg)]() [![操作系统](https://img.shields.io/badge/OS-MacOS%2C%20Linux-brightgreen.svg)]() [![Python](https://img.shields.io/badge/Python-3.6.5-blue.svg)]() [![PYPI](https://img.shields.io/pypi/wheel/Django.svg)]() [![版本](https://img.shields.io/badge/Version-0.0.1-yellow.svg)]()
python3.6、json、unqlite python。以josn格式存储个人隐私信息。
数据由rsa加密。
###安装
`bash pip install pidb `
###示例用法
`python >>> import pidb >>> pidb.connect('./demo.db', 'mypassword') >>> >>> >>> pidb.Collection('demo').insert('first_record', {"key1": ["value1", "value2"], "key2": {"son_key1": "son_value1"}}) {'Sucess': 'db record_id is: 0'} >>> >>> >>> pidb.Collection('demo').find_by_id() {'0': {'key1': ['value1', 'value2'], 'key2': {'son_key1': 'son_value1'}}} >>> >>> >>> >>> pidb.Collection('demo').find_by_id(0) {'0': {'key1': ['value1', 'value2'], 'key2': {'son_key1': 'son_value1'}}} >>> >>> >>> pidb.Collection('demo').find_by_title('first_record') {'0': {'key1': ['value1', 'value2'], 'key2': {'son_key1': 'son_value1'}}} >>> >>> >>> pidb.Collection('demo').update('first_record', {"key2": {"new_son_key1": "values"}}, 'update_kv') {'Sucess': 'update 1 record'} >>> >>> >>> pidb.Collection('demo').find_by_title('first_record') {'0': {'key1': 'value1', 'key2': {'new_son_key1': 'values'}}} >>> >>> >>> pidb.Collection('demo').update('first_record', {"new_dict": "new_dict_value"}, 'update_all') {'Sucess': 'update 1 record'} >>> >>> >>> pidb.Collection('demo').find_by_title('first_record') {'0': {'new_dict': 'new_dict_value'}} `