Skip to content

Commit 10c1baf

Browse files
docs: update import package name
1 parent 1260d08 commit 10c1baf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/py/sdk/src/context7/client.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Context7:
115115
116116
Synchronous Usage:
117117
```python
118-
from context7 import Context7
118+
from context7-sdk import Context7
119119
120120
# Initialize with API key (or set CONTEXT7_API_KEY env var)
121121
with Context7(api_key="ctx7sk_...") as client:
@@ -133,7 +133,7 @@ class Context7:
133133
Asynchronous Usage:
134134
```python
135135
import asyncio
136-
from context7 import Context7
136+
from context7-sdk import Context7
137137
138138
async def main():
139139
async with Context7(api_key="ctx7sk_...") as client:
@@ -337,7 +337,9 @@ def get_docs(
337337
docs = client.get_docs("/facebook/react", version="18.0.0")
338338
```
339339
"""
340-
path, query = _build_docs_request(library_id, version, page, topic, limit, mode, format)
340+
path, query = _build_docs_request(
341+
library_id, version, page, topic, limit, mode, format
342+
)
341343
result, headers = self._http.request(
342344
method="GET",
343345
path=path,
@@ -479,7 +481,9 @@ async def get_docs_async(
479481
docs = await client.get_docs_async("/facebook/react", version="18.0.0")
480482
```
481483
"""
482-
path, query = _build_docs_request(library_id, version, page, topic, limit, mode, format)
484+
path, query = _build_docs_request(
485+
library_id, version, page, topic, limit, mode, format
486+
)
483487
result, headers = await self._http.request_async(
484488
method="GET",
485489
path=path,

0 commit comments

Comments
 (0)