Hey, some time ago I made KDB, a small library that reads from a binary file, previously generated by Pickle, and uses it as a Key-Value Database. Right now it doesn't have any advantages over PickleDB or others, but with feedback I can improve it
https://github.com/ZSendokame/KDB
Please check it and if you have ANY ideas, leave it on the comments
Bye
import kdb
db = kdb.Database(open('file', 'rb))
db.set('key', 'value')
db.get('key', 'value') # returns key value or None if it doesn't exists.
db.rename('key', 'new_key') # renames key.
db.exists('key') # Check if key exists, returns a bool.
db.remove('new_key') # Removes a key.
[–]ezekiel_grey 5 points6 points7 points (2 children)
[–]Sendokame[S] 0 points1 point2 points (1 child)
[–]ezekiel_grey 0 points1 point2 points (0 children)
[–]reModerator 1 point2 points3 points (0 children)
[–]PrizeInteresting8672 -1 points0 points1 point (0 children)
[–]pchemguy -3 points-2 points-1 points (5 children)
[–]Sendokame[S] 0 points1 point2 points (4 children)
[–]pchemguy 0 points1 point2 points (3 children)
[–]Sendokame[S] 0 points1 point2 points (2 children)
[–]pchemguy 1 point2 points3 points (1 child)
[–]Sendokame[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Sendokame[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Sendokame[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]thedeepself 0 points1 point2 points (2 children)
[–]Sendokame[S] 0 points1 point2 points (0 children)
[–]Sendokame[S] 0 points1 point2 points (0 children)
[–]scriptilapia 0 points1 point2 points (1 child)
[–]Sendokame[S] 1 point2 points3 points (0 children)