Skip to content

Commit

Permalink
Improve cache 3rd party access
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaff committed Nov 25, 2024
1 parent 2966505 commit 2dee358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions biothings_client/cache/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
import logging
import sqlite3

import anysqlite
import hishel
from biothings_client._dependencies import _CACHING

if _CACHING:
import anysqlite
import hishel


logger = logging.getLogger("biothings.client")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ version = "0.4.0"
[project.optional-dependencies]
caching = [
"anysqlite; python_version>='3.8'",
"hishel[sqlite]>=0.1.0; python_version >='3.8'",
"hishel[sqlite]; python_version >='3.8'",
]
dataframe = ["pandas>=1.3.0"]
jsonld = ["PyLD>=0.7.2"]
Expand Down

0 comments on commit 2dee358

Please sign in to comment.