Source code

Download source archive ↓

src/rdflib/contrib/rdf4j/__init__.py

1from importlib.util import find_spec
2
3has_httpx = find_spec("httpx") is not None
4
5if has_httpx:
6    from .client import RDF4JClient
7
8    __all__ = ["RDF4JClient", "has_httpx"]
9else:
10    __all__ = ["has_httpx"]