Skip to content

Commit

Permalink
upgrade to v0.1.9 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
KenyonY authored Dec 15, 2023
1 parent 7cc291f commit a724207
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flaxkv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .core import LevelDBDict, LMDBDict
from .serve.client import RemoteDictDB

__version__ = "0.1.8"
__version__ = "0.1.9"

__all__ = [
"dictdb",
Expand Down
3 changes: 3 additions & 0 deletions flaxkv/serve/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def setdefault(self, key, default=None):
def __setitem__(self, key, value):
self.set(key, value)

def __iter__(self):
return iter(self.keys())

def __getitem__(self, key):
value = self.get(key)
if value is None:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ database = [
]

server = [
"uvicorn",
"litestar",
"httpx",
]
Expand Down

0 comments on commit a724207

Please sign in to comment.