Skip to content

Commit

Permalink
move httpx to __init__ method && update pypi keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
KenyonY committed Dec 11, 2023
1 parent 9f1459a commit 08ffa73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flaxkv/serve/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import httpx

from ..pack import decode, decode_key, encode


Expand All @@ -13,6 +11,8 @@ def __init__(
timeout=6,
**kwargs,
):
import httpx

self._url = url
self._db_name = db_name
self._client = kwargs.pop("client", httpx.Client(timeout=timeout))
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]
license-files = { paths = ["LICENSE"] }
readme = "README.md"
keywords = ["database", "dict", "lmdb", "leveldb", "Machine Learning", "NLP"]
keywords = ["persistent-storage", "on-disk dict", "lmdb", "leveldb", "Machine Learning", "NLP"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
Expand Down Expand Up @@ -56,6 +56,7 @@ database = [

server = [
"litestar",
"httpx",
]


Expand Down

0 comments on commit 08ffa73

Please sign in to comment.