在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'}} `

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
datetime如何使用JodaTime在Java中设置时间属性   java固定算法的性能时间   java如何从JMenu中获取所选项以更改文本区域的文本颜色?   java配置单元UDF传递数组<string>作为参数   javaapachebeam和BigQuery   java与PrintWriter之间的差异。printf和PrintWriter。格式方法   继承如何处理按Java版本更改的导入,以及在多个版本上编译   xml java。lang.noClassDefFoundant生成错误   java如何使用包含映射的JSON发送POST请求?   java如何在任何应用程序的JAR文件中绑定MySql数据库?   Java脚本解释器   sslhttpclientjava。网SocketException:未实现未连接的socket   java如何为Android应用程序创建类似于Cron作业的东西   java JButton+radiobox+复选框   java内存管理将文件写入内存   java这是计算对象实例的有效方法吗?   用于死锁情况的java代码?   JavaSpring容器作为新实体插入,而不是存储在表中