Starting memoru, simple key-value store database

This commit is contained in:
aewens 2019-06-29 14:10:46 -05:00
parent 5f1f95b791
commit 3e2745e43f
2 changed files with 11 additions and 1 deletions

View File

@ -1 +1,2 @@
from abots.db.sqlite import SQLite
from abots.db.sqlite import SQLite
from abots.db.memoru import Memoru

9
abots/db/memoru.py Normal file
View File

@ -0,0 +1,9 @@
from abots.helpers import infinitedict
class Memoru:
def __init__(self, location=None):
self._location = Path(location) if location is not None else None
self_data = infinitedict()
if self._location is not None:
invalid_location = f"Location does not exist: {self._location}"
assert self._location.exists(), invalid_location