key-value-db:键值数据库的Python实现

时间:2021-04-03 12:51:39
【文件属性】:
文件名称:key-value-db:键值数据库的Python实现
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-03 12:51:39
Python O2NDb-基于python的键值数据库实现 入门 设置一个Python 3.6+虚拟环境并安装依赖项。 用法: from db import Db db_handle = Db () db_handle.set( " key " , " value1 " ) db_handle.get( " key " ) db_handle.delete( " key " ) # You can implement counters as follows db_handle.set( " counter " , 1) db_handle.increment( " counter " ) # Returns 2 db_handle.increment_by( " counter " , 10) # Returns 12 技术讨论 贮存 备选方案1(已实现):为键创建一个哈希表,并将每个键存储为哈希
【文件预览】:
key-value-db-master
----.gitignore(21B)
----requirements.txt(415B)
----__init__.py(0B)
----db.py(1KB)
----cli.py(1KB)
----handler.py(2KB)
----README.md(2KB)
----tests()
--------__init__.py(0B)
--------test_core_methods.py(996B)
--------test_operations.py(944B)
--------test_multi_command.py(1KB)
----core.py(3KB)

网友评论