From 08ffa7352bb940d14f79c88e9f6656d1628ca2fd Mon Sep 17 00:00:00 2001 From: "K.Y" Date: Mon, 11 Dec 2023 19:29:00 +0800 Subject: [PATCH] move httpx to __init__ method && update pypi keywords --- flaxkv/serve/client.py | 4 ++-- pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/flaxkv/serve/client.py b/flaxkv/serve/client.py index 44ba53e..65f9dd9 100644 --- a/flaxkv/serve/client.py +++ b/flaxkv/serve/client.py @@ -1,5 +1,3 @@ -import httpx - from ..pack import decode, decode_key, encode @@ -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)) diff --git a/pyproject.toml b/pyproject.toml index f3e0c39..bae0b16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -56,6 +56,7 @@ database = [ server = [ "litestar", + "httpx", ]